Fix White Window issue on Windows after Qt 5.12.4 upgrade
authorMichael Schuster <michael@schuster.ms>
Thu, 26 Sep 2019 02:59:17 +0000 (04:59 +0200)
committerMichael Schuster <michael@schuster.ms>
Thu, 26 Sep 2019 02:59:17 +0000 (04:59 +0200)
commit8f616969ab482c72092cb7c037a91292a0f159e1
tree38e672e0a7b31ca395bcf4ad4a5e3df39849d4f9
parentcb60e8aa90436297990dba5aade363daca55bd1e
Fix White Window issue on Windows after Qt 5.12.4 upgrade

Qt 5.12.4 seems to introduce a new bug on Windows, causing the settings window
to not be redrawn when re-opening it, for example by clicking at the tray icon.

As a workaround this fix starts a 100 ms timer to be fired once upon
QDialog::showEvent is called.

Signed-off-by: Michael Schuster <michael@schuster.ms>
src/gui/settingsdialog.cpp
src/gui/settingsdialog.h