Skip to content

Commit

Permalink
Show message bar for console python open error
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Apr 21, 2014
1 parent f5a60a4 commit 60dc15e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -1225,7 +1225,7 @@ void QgisApp::showPythonDialog()
{
QString className, text;
mPythonUtils->getError( className, text );
QMessageBox::critical( this, tr( "Error" ), tr( "Failed to open Python console:" ) + "\n" + className + ": " + text );
messageBar()->pushMessage( tr( "Error" ), tr( "Failed to open Python console:" ) + "\n" + className + ": " + text, QgsMessageBar::WARNING);
}
#ifdef Q_WS_MAC
else
Expand Down

0 comments on commit 60dc15e

Please sign in to comment.