[vlc-devel] [PATCH 3/4] qt4: save and restore the position of the GotoTime dialog

Ludovic Fauvet etix at videolan.org
Thu Jun 7 15:06:54 CEST 2012


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

diff --git a/modules/gui/qt4/dialogs/gototime.cpp b/modules/gui/qt4/dialogs/gototime.cpp
index 909e800..5eb557a 100644
--- a/modules/gui/qt4/dialogs/gototime.cpp
+++ b/modules/gui/qt4/dialogs/gototime.cpp
@@ -74,10 +74,13 @@ GotoTimeDialog::GotoTimeDialog( intf_thread_t *_p_intf)
     BUTTONACT( gotoButton, close() );
     BUTTONACT( cancelButton, cancel() );
     BUTTONACT( resetButton, reset() );
+
+    QVLCTools::restoreWidgetPosition( getSettings(), this );
 }
 
 GotoTimeDialog::~GotoTimeDialog()
 {
+    QVLCTools::saveWidgetPosition( getSettings(), this );
 }
 
 void GotoTimeDialog::toggleVisible()
-- 
1.7.10.3




More information about the vlc-devel mailing list