diff options
Diffstat (limited to 'ui/qt/supported_protocols_dialog.cpp')
-rw-r--r-- | ui/qt/supported_protocols_dialog.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/qt/supported_protocols_dialog.cpp b/ui/qt/supported_protocols_dialog.cpp index 08ff8b116e..1bd1dc8d60 100644 --- a/ui/qt/supported_protocols_dialog.cpp +++ b/ui/qt/supported_protocols_dialog.cpp @@ -47,16 +47,14 @@ enum { name_col_, filter_col_, type_col_, descr_col_ }; SupportedProtocolsDialog::SupportedProtocolsDialog(QWidget *parent) : - QDialog(parent), + GeometryStateDialog(parent), ui(new Ui::SupportedProtocolsDialog), field_count_(0) { ui->setupUi(this); + if (parent) loadGeometry(parent->width() * 3 / 4, parent->height()); setWindowTitle(wsApp->windowTitleString(tr("Supported Protocols"))); - // XXX Use recent settings instead - if (parent) resize(parent->width() * 3 / 4, parent->height()); - // Some of our names are unreasonably long. int one_em = fontMetrics().height(); ui->protoTreeWidget->setColumnWidth(name_col_, one_em * 15); |