From: Frank Reininghaus Date: Wed, 4 Jun 2014 19:56:36 +0000 (+0200) Subject: Make Dolphin windows with multiple tabs closable X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/c7d607a7fc1c9e027d6abdb5adcc7c542bbaa268 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 --- diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 049c44088..924354b4b 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -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: