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