forked from osmocom/wireshark
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:
parent
48a95dea4f
commit
8843606666
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue