added winapi-call to flush clipboard (#778)

This commit is contained in:
Marco Schmid
2018-10-09 18:37:51 +02:00
committed by fourtf
parent 845c595b70
commit 770e36c10c
3 changed files with 23 additions and 0 deletions
+9
View File
@@ -11,6 +11,10 @@
#include "singletons/Updates.hpp"
#include "widgets/dialogs/LastRunCrashDialog.hpp"
#ifdef USEWINSDK
# include "util/WindowsHelper.hpp"
#endif
#ifdef C_USE_BREAKPAD
# include <QBreakpadHandler.h>
#endif
@@ -133,6 +137,11 @@ void runGui(QApplication &a, Paths &paths, Settings &settings)
chatterino::NetworkManager::deinit();
#ifdef USEWINSDK
// flushing windows clipboard to keep copied messages
flushClipboard();
#endif
_exit(0);
}
} // namespace chatterino