Use message bar for old project message

This commit is contained in:
Nathan Woodrow 2014-04-13 20:53:37 +10:00
parent 241e2f7fbd
commit 5537afcca4

View File

@ -9118,7 +9118,10 @@ void QgisApp::oldProjectVersionWarning( QString oldVersion )
if ( settings.value( "/qgis/warnOldProjectVersion", QVariant( true ) ).toBool() )
{
QApplication::setOverrideCursor( Qt::ArrowCursor );
QString smalltext = tr( "This project file was saved by an older version of QGIS."
" When saving this project file, QGIS will update it to the latest version, "
"possibly rendering it useless for older versions of QGIS.");
QString text = tr( "<p>This project file was saved by an older version of QGIS."
" When saving this project file, QGIS will update it to the latest version, "
"possibly rendering it useless for older versions of QGIS."
@ -9151,9 +9154,8 @@ void QgisApp::oldProjectVersionWarning( QString oldVersion )
);
box.exec();
#else
QMessageBox::warning( NULL, title, text );
messageBar()->pushMessage( title, smalltext);
#endif
QApplication::restoreOverrideCursor();
}
return;
}