Bug 381343 - Application fails to close on scripting bug if main window closed first
Summary: Application fails to close on scripting bug if main window closed first
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: Scripting (show other bugs)
Version: 4.0 pre-alpha
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-18 03:46 UTC by Brendan
Modified: 2018-09-06 14:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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))