[vlc-commits] Qt: fix focus on GotoTime dismiss

Ancelot Mark Pinto git at videolan.org
Sun Feb 28 19:14:19 CET 2016


vlc/vlc-2.2 | branch: master | Ancelot Mark Pinto <ancelotpinto at gmail.com> | Sun Aug 17 19:18:37 2014 +0530| [3d25413706ecb2097b5b0eef4228394a48bed29c] | committer: Jean-Baptiste Kempf

Qt: fix focus on GotoTime dismiss

Close #7914
returns highlight focus to main window on Go/Cancel/[Esc] in GotoTime dialogue

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit c49c859cfc1e1c150b1d3002eaaba4beaea4dc26)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=3d25413706ecb2097b5b0eef4228394a48bed29c
---

 modules/gui/qt4/dialogs/gototime.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt4/dialogs/gototime.cpp b/modules/gui/qt4/dialogs/gototime.cpp
index 77035fb..683db2e 100644
--- a/modules/gui/qt4/dialogs/gototime.cpp
+++ b/modules/gui/qt4/dialogs/gototime.cpp
@@ -92,7 +92,8 @@ void GotoTimeDialog::toggleVisible()
         timeEdit->setTime( timeEdit->time().addSecs( i_time / 1000000 ) );
     }
     QVLCDialog::toggleVisible();
-    activateWindow ();
+    if(isVisible())
+        activateWindow();
 }
 
 void GotoTimeDialog::cancel()



More information about the vlc-commits mailing list