Skip to content

Commit 60dc15e

Browse files
committedApr 21, 2014
Show message bar for console python open error
1 parent f5a60a4 commit 60dc15e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ void QgisApp::showPythonDialog()
12251225
{
12261226
QString className, text;
12271227
mPythonUtils->getError( className, text );
1228-
QMessageBox::critical( this, tr( "Error" ), tr( "Failed to open Python console:" ) + "\n" + className + ": " + text );
1228+
messageBar()->pushMessage( tr( "Error" ), tr( "Failed to open Python console:" ) + "\n" + className + ": " + text, QgsMessageBar::WARNING);
12291229
}
12301230
#ifdef Q_WS_MAC
12311231
else

0 commit comments

Comments
 (0)
Please sign in to comment.