]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs/messages.hpp
Fix potential segfault.
[vlc] / modules / gui / qt4 / dialogs / messages.hpp
index 008510d469c1bd4da235f2002c2ef0ad7f5f9a2f..4ca1b1744cef4b51a003fe9c4e546c38fb22df8b 100644 (file)
@@ -26,6 +26,7 @@
 
 #include "util/qvlcframe.hpp"
 
+class QTabWidget;
 class QPushButton;
 class QSpinBox;
 class QGridLayout;
@@ -55,19 +56,21 @@ public:
 private:
     MessagesDialog( intf_thread_t * );
     static MessagesDialog *instance;
+    QTabWidget *mainTab;
     QSpinBox *verbosityBox;
     QLabel *verbosityLabel;
     QTextEdit *messages;
     QTreeWidget *modulesTree;
-    QPushButton *clearButton;
+    QPushButton *clearUpdateButton;
     QPushButton *saveLogButton;
 
 private slots:
     void updateTab( int );
     void updateLog();
-    void clear();
+    void clearOrUpdate();
     bool save();
 private:
+    void clear();
     void updateTree();
     void buildTree( QTreeWidgetItem *, vlc_object_t * );
 };