Commit 4dc1ec48 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[FIX #473] only clear tabs if something new is selected not if selection is

cleared.
parent 4acd0ca2
......@@ -614,15 +614,15 @@ void WQtControlPanel::selectTreeItem()
return;
}
// TODO(schurade): qt doc says clear() doesn't delete tabs so this is possibly a memory leak
m_tabWidget->clear();
boost::shared_ptr< WModule > module;
boost::shared_ptr< WProperties > props;
boost::shared_ptr< WProperties > infoProps;
if ( m_moduleTreeWidget->selectedItems().size() != 0 )
{
// TODO(schurade): qt doc says clear() doesn't delete tabs so this is possibly a memory leak
m_tabWidget->clear();
// disable delete action for tree items that have children.
if( m_moduleTreeWidget->selectedItems().at( 0 )->childCount() != 0 )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment