From 514536f0ff908caba9e0bb0c159f247f5dacd560 Mon Sep 17 00:00:00 2001 From: dfighter1985 Date: Wed, 21 Nov 2012 23:36:07 +0100 Subject: [PATCH] MODIFIED: #1471 There shouldn't be an error message when clicking cancel in the open file dialog. --HG-- branch : gsoc2012-gui-editor --- .../src/plugins/gui_editor/gui_editor_window.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/gui_editor_window.cpp b/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/gui_editor_window.cpp index 2d0ca0635..17325676a 100644 --- a/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/gui_editor_window.cpp +++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/gui_editor/gui_editor_window.cpp @@ -138,19 +138,13 @@ namespace GUIEditor tr( "All XML files (*.xml)" ) ); setCursor( Qt::WaitCursor ); - if( !fileName.isEmpty() ) + if( fileName.isEmpty() ) { - _lastDir = QFileInfo( fileName ).absolutePath(); - } - else - { - QMessageBox::critical( this, - tr( "Error opening project file" ), - tr( "Cannot open the specified project file!" ) ); - setCursor( Qt::ArrowCursor ); return; } + + _lastDir = QFileInfo( fileName ).absolutePath(); projectParser.clear();