[vlc-devel] commit: Always save position on exit. (Jean-Baptiste Kempf )
git version control
git at videolan.org
Fri Sep 19 00:11:17 CEST 2008
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Sep 18 15:13:14 2008 -0700| [9e5938db3f98863bdb2001d444c178c17468d67c] | committer: Jean-Baptiste Kempf
Always save position on exit.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9e5938db3f98863bdb2001d444c178c17468d67c
---
modules/gui/qt4/main_interface.cpp | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index c02227b..017bf22 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -249,6 +249,8 @@ MainInterface::~MainInterface()
{
msg_Dbg( p_intf, "Destroying the main interface" );
+ if( videoIsActive ) videoWidget->hide();
+
if( playlistWidget )
{
if( !isDocked() )
@@ -262,18 +264,10 @@ MainInterface::~MainInterface()
settings->setValue( "adv-controls",
getControlsVisibilityStatus() & CONTROLS_ADVANCED );
- if( !videoIsActive )
- {
- QVLCTools::saveWidgetPosition(settings, this);
- }
- else
- {
- msg_Dbg( p_intf, "Not saving because video is in use." );
- }
-
if( bgWidget )
settings->setValue( "backgroundSize", bgWidget->size() );
+ QVLCTools::saveWidgetPosition(settings, this);
settings->endGroup();
var_DelCallback( p_intf->p_libvlc, "intf-show", IntfShowCB, p_intf );
More information about the vlc-devel
mailing list