Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Show call stack when python console open fails
  • Loading branch information
m-kuhn committed May 29, 2013
1 parent a0b4515 commit d28d202
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgisapp.cpp
Expand Up @@ -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 )
{
Expand Down

0 comments on commit d28d202

Please sign in to comment.