1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Fixed width of combo box in Add User Agent dialog.

closes #523
This commit is contained in:
nowrep 2012-08-24 14:55:06 +02:00
parent 7f2bc706de
commit 20c03ba459

View File

@ -183,7 +183,6 @@ bool UserAgentDialog::showEditDialog(const QString &title, QString* rSite, QStri
QComboBox* editAgent = new QComboBox(dialog);
editAgent->setEditable(true);
editAgent->addItems(m_knownUserAgents);
editAgent->setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLength);
QDialogButtonBox* box = new QDialogButtonBox(dialog);
box->addButton(QDialogButtonBox::Ok);
@ -206,6 +205,7 @@ bool UserAgentDialog::showEditDialog(const QString &title, QString* rSite, QStri
dialog->setWindowTitle(title);
dialog->setMinimumSize(550, 100);
dialog->setMaximumWidth(550);
if (dialog->exec()) {
*rSite = editSite->text();