diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/main-window.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gui/main-window.cpp b/gui/main-window.cpp index 64935157..0382edf2 100644 --- a/gui/main-window.cpp +++ b/gui/main-window.cpp @@ -13,6 +13,7 @@ #include "new_file_dialog.h" #include "migration/migration.hpp" #include "compat/check-visible.hpp" +#include "compat/sleep.hpp" #include <QFile> #include <QFileDialog> @@ -311,7 +312,17 @@ MainWindow::~MainWindow() { if (tray) tray->hide(); + const bool just_stopping = bool(work); stop_tracker_(); + + // stupid ps3 eye has LED issues + if (just_stopping) + { + close(); + QEventLoop ev; + ev.processEvents(); + portable::sleep(2000); + } } void MainWindow::set_working_directory() |