aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-02-12 19:31:13 -0800
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2015-02-13 16:07:00 +0000
commit8843606666db80fab3812a2b45f1c882eb48805d (patch)
treed677c52f3dad68cdbebc30170619e999cc74f881 /ui
parent48a95dea4f9ac9629e15dc170a7e0f82489884e6 (diff)
Qt: Try to make some dialogs behave like windows.
Initialize WiresharkDialog with a NULL parent. This should make its subclasses behave like independent windows. Change-Id: If84609eeba53a92780c0873a1243888998d2b26b Reviewed-on: https://code.wireshark.org/review/7094 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/wireshark_dialog.cpp4
-rw-r--r--ui/qt/wireshark_dialog.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/ui/qt/wireshark_dialog.cpp b/ui/qt/wireshark_dialog.cpp
index bc6c7e7534..1428323057 100644
--- a/ui/qt/wireshark_dialog.cpp
+++ b/ui/qt/wireshark_dialog.cpp
@@ -39,8 +39,8 @@
// - Use a dynamic property + Q_PROPERTY for the subtitle.
-WiresharkDialog::WiresharkDialog(QWidget &parent, CaptureFile &capture_file) :
- QDialog(&parent, Qt::Window),
+WiresharkDialog::WiresharkDialog(QWidget &, CaptureFile &capture_file) :
+ QDialog(NULL, Qt::Window),
cap_file_(capture_file),
file_closed_(false)
{
diff --git a/ui/qt/wireshark_dialog.h b/ui/qt/wireshark_dialog.h
index 36072a79ea..9c34d430ca 100644
--- a/ui/qt/wireshark_dialog.h
+++ b/ui/qt/wireshark_dialog.h
@@ -32,7 +32,7 @@ class WiresharkDialog : public QDialog
public:
// XXX Unlike the entire QWidget API, parent is mandatory here.
- explicit WiresharkDialog(QWidget &parent, CaptureFile &capture_file);
+ explicit WiresharkDialog(QWidget &, CaptureFile &capture_file);
signals: