[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [krita/berger-scripting] krita/plugins/extensions/pykrita/src/plugins/hello: fix crash (the action
From:       Cyrille Berger <cberger () cberger ! net>
Date:       2015-12-09 21:13:31
Message-ID: E1a6m3H-0005XC-BE () scm ! kde ! org
[Download RAW message or body]

Git commit 38c54e636a6ef5589af9523d3d8053c0a8b06bb8 by Cyrille Berger.
Committed on 09/12/2015 at 19:42.
Pushed by berger into branch 'berger-scripting'.

fix crash (the action depends on the Krita() but it get deleted)

M  +2    -1    krita/plugins/extensions/pykrita/src/plugins/hello/hello.py

http://commits.kde.org/krita/38c54e636a6ef5589af9523d3d8053c0a8b06bb8

diff --git a/krita/plugins/extensions/pykrita/src/plugins/hello/hello.py \
b/krita/plugins/extensions/pykrita/src/plugins/hello/hello.py index 3db2975..aeb92bf \
                100644
--- a/krita/plugins/extensions/pykrita/src/plugins/hello/hello.py
+++ b/krita/plugins/extensions/pykrita/src/plugins/hello/hello.py
@@ -6,5 +6,6 @@ import krita
 def hello():
     QMessageBox.information(QWidget(), "Test", "Hello World")
 
-ac = Krita().createAction("Hello")
+kr = Krita()
+ac = kr.createAction("Hello")
 ac.triggered.connect(hello)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic