]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Make Dolphin windows with multiple tabs closable
authorFrank Reininghaus <frank78ac@googlemail.com>
Wed, 4 Jun 2014 19:56:36 +0000 (21:56 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Wed, 4 Jun 2014 19:56:36 +0000 (21:56 +0200)
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

src/dolphinmainwindow.cpp

index 049c440882122248baf3abaaf93a29a005847e3d..924354b4b8170767e62d33b82dbf73d3668ea147 100644 (file)
@@ -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: