From: Daniel Molkentin Date: Thu, 22 Oct 2015 14:20:59 +0000 (+0200) Subject: Revert "Settings dialog: remove the close button #3713" X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1514 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=899f52be4f1168923a6ea4556cfdf9f55fc5a866;p=nextcloud-desktop.git Revert "Settings dialog: remove the close button #3713" This reverts commit ebee6f0bc266bd68809a3f553bce14bde5116fdf. Unix window managers do not have a reliable way of hinting buttons, so we need the close button. --- diff --git a/src/gui/settingsdialog.cpp b/src/gui/settingsdialog.cpp index 2967027eb..94e8867eb 100644 --- a/src/gui/settingsdialog.cpp +++ b/src/gui/settingsdialog.cpp @@ -111,6 +111,9 @@ SettingsDialog::SettingsDialog(ownCloudGui *gui, QWidget *parent) : QTimer::singleShot(1, this, SLOT(showFirstPage())); + QPushButton *closeButton = _ui->buttonBox->button(QDialogButtonBox::Close); + connect(closeButton, SIGNAL(clicked()), SLOT(accept())); + QAction *showLogWindow = new QAction(this); showLogWindow->setShortcut(QKeySequence("F12")); connect(showLogWindow, SIGNAL(triggered()), gui, SLOT(slotToggleLogBrowser())); diff --git a/src/gui/settingsdialog.ui b/src/gui/settingsdialog.ui index 83590c23b..cdabf661f 100644 --- a/src/gui/settingsdialog.ui +++ b/src/gui/settingsdialog.ui @@ -6,8 +6,8 @@ 0 0 - 488 - 342 + 693 + 457 @@ -29,6 +29,28 @@ 0 + + + + + 0 + + + 0 + + + + + Qt::Horizontal + + + QDialogButtonBox::Close + + + + + +