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

Fix seg fault, when closing ost

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2536 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 6b05d1f8
Branches
Tags
No related merge requests found
......@@ -20,8 +20,6 @@
#include <QSettings>
#include <QDir>
#include <iostream>
#include <ost/gui/widget_registry.hh>
#include "tabbed_panel_bar.hh"
......@@ -98,10 +96,7 @@ void TabbedPanelBar::CurrentChanged(int index){
TabbedPanelBar::~TabbedPanelBar(){
//Do not destroy widgets
for(int i=0; i< tab_widget_->count();i++){
tab_widget_->widget(i)->setParent(NULL);
}
toolbar_->clear();
}
}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment