From 3f6b40bf3a30440bebde44dabf4af4a94607b2c5 Mon Sep 17 00:00:00 2001 From: dfighter1985 Date: Thu, 19 Jul 2012 22:33:18 +0200 Subject: [PATCH] FIXED: #1471 Pointless and senseless check preventing project file deletion. --HG-- branch : gsoc2012-gui-editor --- .../object_viewer_qt/src/plugins/gui_editor/project_window.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/project_window.cpp b/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/project_window.cpp index e499a48d6..1c2894ec5 100644 --- a/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/project_window.cpp +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/project_window.cpp @@ -107,8 +107,6 @@ namespace GUIEditor if( fileTree->currentItem() == NULL ) return; - if( ( fileTree->topLevelItem( 0 )->childCount() == 0 ) || ( fileTree->topLevelItem( 1 )->childCount() == 0 ) ) - return; // Can't delete top-level item if( fileTree->currentItem()->parent() == NULL ) return;