diff options
author | David Robillard <d@drobilla.net> | 2017-03-18 12:02:05 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-03-18 12:05:15 +0100 |
commit | 43a25ed63a9144afe32a4fea520412770394822c (patch) | |
tree | 67c7aa044726304b71794f64316ad68d29758325 /src/qt5_in_gtk2.cpp | |
parent | 64a2647d8d81b5c23d22b52cc9e0dd2595270b67 (diff) | |
download | suil-43a25ed63a9144afe32a4fea520412770394822c.tar.gz suil-43a25ed63a9144afe32a4fea520412770394822c.tar.bz2 suil-43a25ed63a9144afe32a4fea520412770394822c.zip |
Add suil_init()
This allows the actual host argc and argv to be passed to QApplication if it is
created by Suil (for Qt in non-Qt cases), and initializes X11 threads to fix
Qt5 in Gtk2.
Diffstat (limited to 'src/qt5_in_gtk2.cpp')
-rw-r--r-- | src/qt5_in_gtk2.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qt5_in_gtk2.cpp b/src/qt5_in_gtk2.cpp index 0823afc..bd7957e 100644 --- a/src/qt5_in_gtk2.cpp +++ b/src/qt5_in_gtk2.cpp @@ -146,8 +146,7 @@ suil_wrapper_new(SuilHost* host, if (qApp) { wrap->app = qApp; } else { - static int argc = 0; - wrap->app = new QApplication(argc, NULL, true); + wrap->app = new QApplication(host->argc, host->argv, true); } wrap->wrapper = NULL; |