Show message bar for console python open error

This commit is contained in:
Nathan Woodrow 2014-04-13 21:16:28 +10:00
parent f5a60a499a
commit 60dc15eec5

View File

@ -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