summaryrefslogtreecommitdiffhomepage
path: root/gui/main.cpp
AgeCommit message (Collapse)Author
2017-04-13main: call set-library-paths only after qapplication existsStanislaw Halik
Otherwise accesses qt install prefix. Issue: #598
2017-03-22[COVERITY] gui/main: fix implausible null pointer dereferenceStanislaw Halik
Guard against NULL in the improbable case there's no PATH variable in the process' environment.
2017-03-01main: don't comment out _exit(2)Stanislaw Halik
2017-02-27gui/main: reindentStanislaw Halik
2017-02-27options/fix bundle refcount handlingStanislaw Halik
We rolled up our own refcount while using shared_ptr at the same time. Remove all rolled-up logic and rely on shared_ptr's custom deleter to do the cleanups. This greatly simplifies the code here. Unfortunately, _fini ordering makes Qt crash after the app object runs out of scope: gui/main.cpp: QApplication app(argc, argv); Both things considered, use _exit(2) on Unix to avoid running static destructors.
2017-01-28gui/main: still getting those crashesStanislaw Halik
2016-12-28cmake: fix translations on LinuxStanislaw Halik
2016-12-28main: fix typo breaking non-win32Stanislaw Halik
2016-12-24gui/main: with vc2015 it doesn't crash on exitStanislaw Halik
Turns out vc2017 RC miscompiled Qt libs leading to a crash around RtlHeapFree.
2016-11-29main: change for testingStanislaw Halik
2016-11-18Revert "gui: resize dialog boxes to fit text"Stanislaw Halik
This reverts commit d26048617d78396cc6381eaf06f19fee484d811c.
2016-11-18gui: resize dialog boxes to fit textStanislaw Halik
2016-11-18gui: allow for disabling translationStanislaw Halik
2016-11-04cmake, main: add translation supportStanislaw Halik
2016-09-16gui, logic: add separate option for starting in tray vs tray enabledStanislaw Halik
Suggested-by: @MathijsG, #454
2016-09-16gui/main-window: exit program when config not writableStanislaw Halik
Note, it opens the config in read-write mode to check if it's writable. This might present a race condition when config is saved. However, we're expecting all config saving to be done in the user interface thread. Add a check for it however.
2016-09-16compat, dinput: don't overdo COM logicStanislaw Halik
2016-09-09gui/main: rewordStanislaw Halik
2016-09-09add support for migrationsStanislaw Halik
They're run from the UI thread so can even be interactive.
2016-09-08gui/main: terminate before main ends on msvcStanislaw Halik
2016-09-05gui/{main,mappings}: fix tab stopsStanislaw Halik
2016-09-03simplify some on-exit messagesStanislaw Halik
2016-08-28gui/main: fix MSVC crash on exitStanislaw Halik
Qt loads plugins from its install prefix and after main() exits it unloads qgif which has a crash. So disable the Qt install prefix plugins and only use our own directory's contents.
2016-08-23gui/main: fix link error on msvc++Stanislaw Halik
2016-08-23cmake: define MINGW_HAS_SECURE_APIStanislaw Halik
2016-08-17compat/win32-com: default to right COM type without caller specifying itStanislaw Halik
The main window always needs the apartment threaded context for OLE used by Qt. Default to apartment threaded before a QApplication is created, or if the thread is the QApplication thread. Use multithreaded COM otherwise.
2016-08-17move options framework into its own libraryStanislaw Halik
- adjust usages - add support for QList signals and metatype
2016-08-12all: rename modules s#^opentrack-##. and opentrack -> apiStanislaw Halik
Adjust usages.
2016-08-12few: use existing com threading init functionStanislaw Halik
2016-08-10gui/main: don't just exit event loop on last window closedStanislaw Halik
2016-08-10gui/main: display exit messages to debug what destructor is called whereStanislaw Halik
2016-08-10gui: there's no crash on exit in MSVC build anymoreStanislaw Halik
Reported-by: @DaMichel cf. https://github.com/DaMichel/opentrack/commit/777942eb65884ba9248c01399a4a5d1e72a35d80#commitcomment-18587629
2016-08-10gui: fix tray icon regressionStanislaw Halik
Issue: #410 Reported-by: @albertolg
2016-08-10gui: only rename main window filesStanislaw Halik
Adjust usages.
2016-08-07Fix trivial build errors on linux. Also support Qt 5.5.DaMichel
2016-07-30gui/main: fix qt style paletteStanislaw Halik
Only changing style after QApplication's been defined sets the palette.
2016-07-23gui: don't try to force "windowsxp" styleStanislaw Halik
2016-07-23gui/main: enable display scaling. move setenv PATH as own functionStanislaw Halik
2016-07-18gui: add application path and modules subdir to PATHStanislaw Halik
Without it, win32 won't load some modules. This is probably a security feature on windows nt.
2016-07-06gui, api, csv: support hier(7) on UnixStanislaw Halik
This affects platforms such as FreeBSD, Cygwin or Linux.
2015-11-01all: adjust options.hpp move to compatStanislaw Halik
2015-10-30rename gui directoryStanislaw Halik