Bug 381343

Summary: Application fails to close on scripting bug if main window closed first
Product: [Applications] krita Reporter: Brendan <bunf2014>
Component: ScriptingAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: halla
Priority: NOR    
Version: 4.0 pre-alpha   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Brendan 2017-06-18 03:46:22 UTC
If a script has an error Krita displays a dialog with a stack trace. If you close the Krita window before closing the dialog, Krita doesn't return. 

To replicate:
run sample code below from scripting menu
when error dialog appears, click the close icon on the main Krita window
then click the close button or the close icon on the dialog window. 


Sample code:

import krita

class Tester(krita.Extension):
    def __init__(self, parent):
        super().__init__(parent)

    def tester(self):
        print("No object called ",  UNKNOWN_OBJECT)

    def setup(self):
        action = Application.createAction("Tester")
        action.triggered.connect(self.tester)

Scripter.addExtension(Tester(Application))