mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-13 10:49:11 +00:00
MODIFIED: #1471 There shouldn't be an error message when clicking cancel in the open file dialog.
This commit is contained in:
parent
677358df6d
commit
12e5aedddb
1 changed files with 3 additions and 9 deletions
|
@ -138,19 +138,13 @@ namespace GUIEditor
|
||||||
tr( "All XML files (*.xml)" ) );
|
tr( "All XML files (*.xml)" ) );
|
||||||
|
|
||||||
setCursor( Qt::WaitCursor );
|
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 );
|
setCursor( Qt::ArrowCursor );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_lastDir = QFileInfo( fileName ).absolutePath();
|
||||||
|
|
||||||
projectParser.clear();
|
projectParser.clear();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue