Skip to content
Permalink
Browse files

Show call stack when python console open fails

  • Loading branch information
m-kuhn committed May 29, 2013
1 parent a0b4515 commit d28d2023b6957c208f0301ff119cc059735522c2
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgisapp.cpp
@@ -1137,9 +1137,9 @@ void QgisApp::showPythonDialog()
if ( !mPythonUtils || !mPythonUtils->isEnabled() )
return;

bool res = mPythonUtils->runStringUnsafe(
bool res = mPythonUtils->runString(
"import console\n"
"console.show_console()\n", false );
"console.show_console()\n", tr( "Failed to open Python console:" ), false );

if ( !res )
{

0 comments on commit d28d202

Please sign in to comment.
You can’t perform that action at this time.