mirror of
https://invent.kde.org/system/dolphin
synced 2024-07-15 18:01:11 +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) {
|
||||
case KDialog::Yes:
|
||||
case QDialogButtonBox::Yes:
|
||||
// Quit
|
||||
break;
|
||||
case KDialog::No:
|
||||
case QDialogButtonBox::No:
|
||||
// Close only the current tab
|
||||
closeTab();
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue