mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Use message bar for old project message
This commit is contained in:
parent
241e2f7fbd
commit
5537afcca4
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user