Skip to content
Snippets Groups Projects
Commit a8032322 authored by stefan's avatar stefan
Browse files

Fix for MessageWidget (seg fault when not displayed)

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2682 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent ee13bc41
No related branches found
No related tags found
No related merge requests found
...@@ -142,7 +142,7 @@ Perspective* GostyApp::GetPerspective() ...@@ -142,7 +142,7 @@ Perspective* GostyApp::GetPerspective()
MessageWidget* GostyApp::GetMessageWidget() MessageWidget* GostyApp::GetMessageWidget()
{ {
if (message_widget_==NULL) { if (message_widget_==NULL) {
message_widget_=new MessageWidget(main_); message_widget_=new MessageWidget;
} }
return message_widget_; return message_widget_;
} }
......
...@@ -202,8 +202,7 @@ int MessageWidget::GetTotalMessagesCount() { ...@@ -202,8 +202,7 @@ int MessageWidget::GetTotalMessagesCount() {
return model_->rowCount(); return model_->rowCount();
} }
MessageWidget::~MessageWidget() { MessageWidget::~MessageWidget() {}
}
} }
} // ns } // ns
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment