summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-12 17:03:51 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-12 17:03:51 +0200
commiteda47922d9bd6d10e4e2fb3d3191edfaa126aef5 (patch)
tree86cef123f082a743275842d0c110dfa3d6115020 /gui
parent0ed45348c428a950db589caa227efa86af499170 (diff)
few: use existing com threading init function
Diffstat (limited to 'gui')
-rw-r--r--gui/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gui/main.cpp b/gui/main.cpp
index eb040337..a9252c4d 100644
--- a/gui/main.cpp
+++ b/gui/main.cpp
@@ -10,6 +10,7 @@
#include "main-window.hpp"
#include "opentrack-compat/options.hpp"
+#include "opentrack-compat/win32-com.hpp"
using namespace options;
#include <QApplication>
#include <QCommandLineParser>
@@ -111,6 +112,7 @@ static void add_program_library_path()
int main(int argc, char** argv)
{
#ifdef _WIN32
+ init_com_threading(com_apartment);
add_program_library_path();
#elif !defined(__linux)
// workaround QTBUG-38598