MODIFIED: #1471 There shouldn't be an error message when clicking cancel in the open file dialog.

--HG--
branch : gsoc2012-gui-editor
hg/feature/sse2
dfighter1985 12 years ago
parent 7cad2331e7
commit 514536f0ff

@ -138,20 +138,14 @@ 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();
if( !projectParser.parseProjectFile( fileName.toStdString() ) )

Loading…
Cancel
Save