Commit f89b54e9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix Bug 388815 - accountwizard not reacting to alt-f4

BUG: 388815
FIXED-IN: 5.11.3
parent cadeb7da
......@@ -106,7 +106,7 @@ Dialog::Dialog(QWidget *parent)
page->enterPageNext();
//TODO ? necessary ???
Q_EMIT page->pageEnteredNext();
connect(button(QDialogButtonBox::Cancel), &QPushButton::clicked, this, &Dialog::accept);
connect(button(QDialogButtonBox::Cancel), &QPushButton::clicked, this, &Dialog::reject);
KHelpMenu *helpMenu = new KHelpMenu(this, KAboutData::applicationData(), true);
//Initialize menu
QMenu *menu = helpMenu->menu();
......@@ -215,7 +215,7 @@ void Dialog::clearDynamicPages()
void Dialog::reject()
{
connect(mSetupManager, &SetupManager::rollbackComplete, this, &Dialog::close);
connect(mSetupManager, &SetupManager::rollbackComplete, this, [this]() { KAssistantDialog::reject();} );
mSetupManager->requestRollback();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment