From 0ce956b71a90e20c73cc9c7775c6d46e8d5a767b 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. --- .../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();