Browse Source

Event loop now terminate when SimplePythonShell is closed

Jean-Christophe Fillion-Robin 14 years ago
parent
commit
e240120b25
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Applications/ctkSimplePythonShell/ctkSimplePythonShellMain.cpp

+ 1 - 1
Applications/ctkSimplePythonShell/ctkSimplePythonShellMain.cpp

@@ -14,7 +14,7 @@ int main(int argc, char** argv)
   ctkSimplePythonManager pythonManager;
   
   ctkPythonShell shell(&pythonManager);
-  shell.setAttribute(Qt::WA_QuitOnClose, false);
+  shell.setAttribute(Qt::WA_QuitOnClose, true);
   shell.resize(600, 280);
   shell.show();