[vlc-commits] Qt: AboutDialog: reset dialog on show.
Francois Cartegnie
git at videolan.org
Tue Apr 16 16:43:52 CEST 2013
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Apr 16 16:43:28 2013 +0200| [c5f1421ca3abdf53118bce63c6ed65398dd3bb2c] | committer: Francois Cartegnie
Qt: AboutDialog: reset dialog on show.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c5f1421ca3abdf53118bce63c6ed65398dd3bb2c
---
modules/gui/qt4/dialogs/help.cpp | 7 +++++++
modules/gui/qt4/dialogs/help.hpp | 1 +
2 files changed, 8 insertions(+)
diff --git a/modules/gui/qt4/dialogs/help.cpp b/modules/gui/qt4/dialogs/help.cpp
index 8db3dbe..a281afd 100644
--- a/modules/gui/qt4/dialogs/help.cpp
+++ b/modules/gui/qt4/dialogs/help.cpp
@@ -163,6 +163,13 @@ bool AboutDialog::eventFilter(QObject *obj, QEvent *event)
return QVLCDialog::eventFilter( obj, event);
}
+
+void AboutDialog::showEvent( QShowEvent *event )
+{
+ ui.stackedWidget->setCurrentWidget( ui.blablaPage );
+ QVLCDialog::showEvent( event );
+}
+
#ifdef UPDATE_CHECK
/*****************************************************************************
diff --git a/modules/gui/qt4/dialogs/help.hpp b/modules/gui/qt4/dialogs/help.hpp
index 02bb40d..3ef58fe 100644
--- a/modules/gui/qt4/dialogs/help.hpp
+++ b/modules/gui/qt4/dialogs/help.hpp
@@ -62,6 +62,7 @@ public slots:
protected:
bool eventFilter(QObject *obj, QEvent *event);
+ virtual void showEvent ( QShowEvent * );
private:
bool b_advanced;
More information about the vlc-commits
mailing list