Skip to content
Permalink
Browse files

Use message bar for old project message

  • Loading branch information
NathanW2 committed Apr 13, 2014
1 parent 241e2f7 commit 5537afcca4b56e4fc08da2d479b133d4d07f3cae
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/app/qgisapp.cpp
@@ -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;
}

0 comments on commit 5537afc

Please sign in to comment.
You can’t perform that action at this time.