mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-17 15:31:20 +00:00
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.
This commit is contained in:
parent
38f32d5232
commit
6cf628cbd0
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue