mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 09:50:12 +00:00
Make Dolphin windows with multiple tabs closable
The return type and return values of KMessageBox::createKMessageBox() have changed in KF5. We have to adjust the code in DolphinMainWindow::closeEvent(QCloseEvent* event) in order to make windows with multiple tabs closable. BUG: 335732 REVIEW: 118508
This commit is contained in:
parent
59d01e8acc
commit
c7d607a7fc
|
@ -625,10 +625,10 @@ void DolphinMainWindow::closeEvent(QCloseEvent* event)
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (result) {
|
switch (result) {
|
||||||
case KDialog::Yes:
|
case QDialogButtonBox::Yes:
|
||||||
// Quit
|
// Quit
|
||||||
break;
|
break;
|
||||||
case KDialog::No:
|
case QDialogButtonBox::No:
|
||||||
// Close only the current tab
|
// Close only the current tab
|
||||||
closeTab();
|
closeTab();
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue