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 ) :
ui.gridLayout->addWidget( dialogBox, 0, 0, 1, 3 );
// But hide the two OK/Cancel buttons. Enable them for debug.
fileDialogAcceptBox = findChildren<QDialogButtonBox*>()[0];
QDialogButtonBox *fileDialogAcceptBox =
findChildren<QDialogButtonBox*>()[0];
fileDialogAcceptBox->hide();
/* Ugly hacks to get the good Widget */
......
......@@ -29,11 +29,11 @@
#include <QWidget>
#include <QString>
#include <QFileDialog>
#include "ui/open_file.h"
#include "ui/open_disk.h"
#include "ui/open_net.h"
#include "ui/open_capture.h"
#include <QDialogButtonBox>
class QLineEdit;
......@@ -80,7 +80,6 @@ private:
QStringList browse( QString );
FileOpenBox *dialogBox;
QLineEdit *lineFileEdit;
QDialogButtonBox *fileDialogAcceptBox;
public slots:
virtual void updateMRL();
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