[vlc-devel] commit: Quick Fix to avoid a segfault on various chaining of close/open/ cancel. (Jean-Baptiste Kempf )
git version control
git at videolan.org
Fri Sep 5 09:39:27 CEST 2008
vlc | branch: 0.9-bugfix | Jean-Baptiste Kempf <jb at videolan.org> | Fri Sep 5 00:41:01 2008 -0700| [87502c76d5f3eccf5cb0875f5d94b6063d76901e] | committer: Jean-Baptiste Kempf
Quick Fix to avoid a segfault on various chaining of close/open/cancel.
This is a quick fix that does not want to be in master... Proper fix should go to master.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=87502c76d5f3eccf5cb0875f5d94b6063d76901e
---
modules/gui/qt4/dialogs/preferences.hpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/dialogs/preferences.hpp b/modules/gui/qt4/dialogs/preferences.hpp
index 634df78..44260ff 100644
--- a/modules/gui/qt4/dialogs/preferences.hpp
+++ b/modules/gui/qt4/dialogs/preferences.hpp
@@ -57,6 +57,8 @@ public:
void showModulePrefs( char* );
#endif
+protected:
+ virtual void closeEvent( QCloseEvent *e ){ instance = NULL; close(); }
private:
PrefsDialog( QWidget *, intf_thread_t * );
QGridLayout *main_layout;
More information about the vlc-devel
mailing list