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

Ancelot Mark Pinto git at videolan.org
Tue Aug 19 00:52:34 CEST 2014


vlc | branch: master | Ancelot Mark Pinto <ancelotpinto at gmail.com> | Sun Aug 17 19:18:37 2014 +0530| [c49c859cfc1e1c150b1d3002eaaba4beaea4dc26] | 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>

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

 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