┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2014-06-04 21:56:36 +0200
committerFrank Reininghaus <[email protected]>2014-06-04 21:56:36 +0200
commitc7d607a7fc1c9e027d6abdb5adcc7c542bbaa268 (patch)
tree6257e031b7b32431cef109d9dd3f7db54baee248 /src/dolphinmainwindow.cpp
parent59d01e8accbfb7f31fb5ea5ef4c94e57d427994a (diff)
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
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
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: