Commit 765497c4 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - don't use a class member when you don't need it. Ref #19854

parent 1298e0c9
...@@ -69,7 +69,8 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) : ...@@ -69,7 +69,8 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
ui.gridLayout->addWidget( dialogBox, 0, 0, 1, 3 ); ui.gridLayout->addWidget( dialogBox, 0, 0, 1, 3 );
// But hide the two OK/Cancel buttons. Enable them for debug. // But hide the two OK/Cancel buttons. Enable them for debug.
fileDialogAcceptBox = findChildren<QDialogButtonBox*>()[0]; QDialogButtonBox *fileDialogAcceptBox =
findChildren<QDialogButtonBox*>()[0];
fileDialogAcceptBox->hide(); fileDialogAcceptBox->hide();
/* Ugly hacks to get the good Widget */ /* Ugly hacks to get the good Widget */
......
...@@ -29,11 +29,11 @@ ...@@ -29,11 +29,11 @@
#include <QWidget> #include <QWidget>
#include <QString> #include <QString>
#include <QFileDialog> #include <QFileDialog>
#include "ui/open_file.h" #include "ui/open_file.h"
#include "ui/open_disk.h" #include "ui/open_disk.h"
#include "ui/open_net.h" #include "ui/open_net.h"
#include "ui/open_capture.h" #include "ui/open_capture.h"
#include <QDialogButtonBox>
class QLineEdit; class QLineEdit;
...@@ -80,7 +80,6 @@ private: ...@@ -80,7 +80,6 @@ private:
QStringList browse( QString ); QStringList browse( QString );
FileOpenBox *dialogBox; FileOpenBox *dialogBox;
QLineEdit *lineFileEdit; QLineEdit *lineFileEdit;
QDialogButtonBox *fileDialogAcceptBox;
public slots: public slots:
virtual void updateMRL(); virtual void updateMRL();
private slots: private slots:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment