Просмотр исходного кода

Event loop now terminate when SimplePythonShell is closed

Jean-Christophe Fillion-Robin лет назад: 14
Родитель
Сommit
e240120b25
1 измененных файлов с 1 добавлено и 1 удалено
  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();