[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [calligra/krita-scripting-rempt] krita/plugins/extensions/pykrita/src/plugins/hello: fix crash (the
From: Cyrille Berger <cberger () cberger ! net>
Date: 2015-05-06 16:05:04
Message-ID: E1Yq1om-0006FI-Gh () scm ! kde ! org
[Download RAW message or body]
Git commit dd5f89f704677457f7901e836aafcd40dc1ef0c2 by Cyrille Berger.
Committed on 06/05/2015 at 16:04.
Pushed by berger into branch 'krita-scripting-rempt'.
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/calligra/dd5f89f704677457f7901e836aafcd40dc1ef0c2
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