summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-11-09 00:08:12 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-11-09 00:08:12 (GMT)
commitdc49b249f21c1c8582b9ca8debdd5fbdd15eadae (patch)
treeb5292d8fa7d94793623989e1c4d6074e8da02c4f /plugins
parent4bafbf79e8143941d744c9c47e6fc9216fcec47a (diff)
Avoided to load the status bar twice and to crash in the worst case.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@605 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'plugins')
-rw-r--r--plugins/pychrysa/pychrysa.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/plugins/pychrysa/pychrysa.c b/plugins/pychrysa/pychrysa.c
index f3acec3..68ab15b 100644
--- a/plugins/pychrysa/pychrysa.c
+++ b/plugins/pychrysa/pychrysa.c
@@ -522,10 +522,18 @@ PyMODINIT_FUNC PyInit_pychrysalide(void)
add_pixmap_directory(PACKAGE_DATA_DIR);
add_pixmap_directory(PACKAGE_SOURCE_DIR G_DIR_SEPARATOR_S "pixmaps");
- init_work_queue(NULL/* !! */);
+ /**
+ * On évite d'initialiser deux fois...
+ */
+ if (get_work_queue() != NULL)
+ init_work_queue(NULL/* !! */);
#endif
- init_work_queue(NULL/* !! */);
+ /**
+ * On évite d'initialiser deux fois...
+ */
+ if (get_work_queue() != NULL)
+ init_work_queue(NULL/* !! */);
////////////////////////