Skip to content

Commit

Permalink
Use message bar for old project message
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Apr 13, 2014
1 parent 241e2f7 commit 5537afc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 5537afc

Please sign in to comment.