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>
This commit is contained in:
Gerald Combs 2015-02-12 19:31:13 -08:00 committed by Alexis La Goutte
parent 48a95dea4f
commit 8843606666
2 changed files with 3 additions and 3 deletions

View File

@ -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)
{

View File

@ -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: