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:
Frank Reininghaus 2014-06-04 21:56:36 +02:00
parent 59d01e8acc
commit c7d607a7fc

View file

@ -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: