Skip to content

Commit

Permalink
Show call stack when python console open fails
Browse files Browse the repository at this point in the history
  • 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
Original file line number Diff line number Diff line change
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.