mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Show message bar for console python open error
This commit is contained in:
parent
f5a60a499a
commit
60dc15eec5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user