diff options
author | Arno <arno@disconnect.de> | 2018-12-03 06:21:31 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-12-03 06:21:31 +0100 |
commit | a5509fe5925e6099275d402d527f8b740ef091ec (patch) | |
tree | 814f300db1c4ce767856ae15018617371a0629f1 | |
parent | c470d29e606a2fe4e486d33cbd36e11cb020351b (diff) | |
download | SheMov-a5509fe5925e6099275d402d527f8b740ef091ec.tar.gz SheMov-a5509fe5925e6099275d402d527f8b740ef091ec.tar.bz2 SheMov-a5509fe5925e6099275d402d527f8b740ef091ec.zip |
Sprinkle some qApp->setActiveWindow here and there
Without this the window manager (e.g. KWin) doesn't know about the
change, so Alt+TAB doesn't work as expected. Very annoying, so here's
the fix!
-rw-r--r-- | fswidget.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fswidget.cpp b/fswidget.cpp index a386abc..7a9a252 100644 --- a/fswidget.cpp +++ b/fswidget.cpp @@ -484,6 +484,7 @@ void FSWidget::archiveMovie(){ } mMovieWizard->infoPage()->selectFirst(); mMovieWizard->show(); + qApp->setActiveWindow(mMovieWizard); } void FSWidget::archivePics(){ @@ -498,6 +499,7 @@ void FSWidget::archivePics(){ mNewPicsDlg->clearFiles(); mNewPicsDlg->addFiles(files); mNewPicsDlg->show(); + qApp->setActiveWindow(mNewPicsDlg); } void FSWidget::advanceDir(int by){ @@ -556,7 +558,7 @@ void FSWidget::doubleClicked(const QModelIndex &idx){ if(mime.startsWith("image")){ mViewer->setFile(idx.data(FullPathRole).toString()); mViewer->showMaximized(); - mViewer->raise(); + qApp->setActiveWindow(mViewer); }else if(mime.startsWith("video")){ playSelected(1, QString()); } |