[vlc-devel] [PATCH] Qt: fix focus on GotoTime dismiss

Ancelot Mark Pinto ancelotpinto at gmail.com
Sun Aug 17 15:30:37 CEST 2014


Close #7914
returns highlight focus to main window on Go/Cancel/[Esc] in GotoTime dialogue
---
 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()
-- 
1.9.1




More information about the vlc-devel mailing list