┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNate Graham <[email protected]>2020-10-03 09:39:16 -0600
committerNate Graham <[email protected]>2020-10-03 09:39:16 -0600
commit6cf628cbd0841847795740dd02affec281d9a89a (patch)
treebf261bfdfb30fd33b2d511a772bf11aa2f5506ab /src
parent38f32d52326bc39b9e27319e9f4e89f94a09bb77 (diff)
Don't warn when closing multiple tabs if restoring window state
When we're using the "restore window state" feature, there's no need to warn when closing multiple tabs, because they're saved and you can just re-open the window.
Diffstat (limited to 'src')
-rw-r--r--src/dolphinmainwindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 5741e8943..ab5dc4341 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -488,7 +488,10 @@ void DolphinMainWindow::closeEvent(QCloseEvent* event)
closedByUser = false;
}
- if (m_tabWidget->count() > 1 && GeneralSettings::confirmClosingMultipleTabs() && closedByUser) {
+ if (m_tabWidget->count() > 1
+ && GeneralSettings::confirmClosingMultipleTabs()
+ && !GeneralSettings::rememberOpenedTabs()
+ && closedByUser) {
// Ask the user if he really wants to quit and close all tabs.
// Open a confirmation dialog with 3 buttons:
// QDialogButtonBox::Yes -> Quit