mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-14 03:09:08 +00:00
FIXED: #1471 Pointless and senseless check preventing project file deletion.
--HG-- branch : gsoc2012-gui-editor
This commit is contained in:
parent
cadd13ba53
commit
3f6b40bf3a
1 changed files with 0 additions and 2 deletions
|
@ -107,8 +107,6 @@ namespace GUIEditor
|
||||||
if( fileTree->currentItem() == NULL )
|
if( fileTree->currentItem() == NULL )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if( ( fileTree->topLevelItem( 0 )->childCount() == 0 ) || ( fileTree->topLevelItem( 1 )->childCount() == 0 ) )
|
|
||||||
return;
|
|
||||||
// Can't delete top-level item
|
// Can't delete top-level item
|
||||||
if( fileTree->currentItem()->parent() == NULL )
|
if( fileTree->currentItem()->parent() == NULL )
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue