summaryrefslogtreecommitdiff
path: root/ui/qt
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-07-30 21:22:53 +0000
committerGerald Combs <gerald@wireshark.org>2012-07-30 21:22:53 +0000
commit3392211002c33ad83b02bb654e5aa0313893ac61 (patch)
tree22158eea8ec88e84c04f99bb02f04a46a066a9d4 /ui/qt
parentafe900aa9ffe818d5049ca2d97d0a4f2d374122c (diff)
downloadwireshark-3392211002c33ad83b02bb654e5aa0313893ac61.tar.gz
Grow the dialog to account for our added widgets.
svn path=/trunk/; revision=44142
Diffstat (limited to 'ui/qt')
-rw-r--r--ui/qt/capture_file_dialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/qt/capture_file_dialog.cpp b/ui/qt/capture_file_dialog.cpp
index 77f41aa9e1..6767d34301 100644
--- a/ui/qt/capture_file_dialog.cpp
+++ b/ui/qt/capture_file_dialog.cpp
@@ -200,6 +200,9 @@ CaptureFileDialog::CaptureFileDialog(QWidget *parent, QString &fileName, QString
previewGrid->addWidget(&m_previewElapsed, 4, 1);
m_previewLabels << lbl << &m_previewElapsed;
+ // Grow the dialog to account for the extra widgets.
+ resize(width(), height() + hBox->minimumSize().height() + m_displayFilterEdit->minimumSize().height());
+
connect(this, SIGNAL(currentChanged(const QString &)), this, SLOT(preview(const QString &)));
preview("");