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();