From f548c45f6abe50e2e0df821032b722f9ed172cd8 Mon Sep 17 00:00:00 2001 From: nowrep Date: Sat, 8 Sep 2012 19:28:47 +0200 Subject: [PATCH] Check for normal tabs count when asking whether to close window. - eg. don't take into account pinned tabs --- src/lib/app/qupzilla.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/app/qupzilla.cpp b/src/lib/app/qupzilla.cpp index 4e1b5d111..b7b78395f 100644 --- a/src/lib/app/qupzilla.cpp +++ b/src/lib/app/qupzilla.cpp @@ -1739,7 +1739,7 @@ void QupZilla::closeEvent(QCloseEvent* event) askOnClose = false; } - if (askOnClose && m_tabWidget->count() > 1) { + if (askOnClose && m_tabWidget->normalTabsCount() > 1) { CheckBoxDialog dialog(QDialogButtonBox::Yes | QDialogButtonBox::No, this); dialog.setText(tr("There are still %1 open tabs and your session won't be stored. \nAre you sure to quit QupZilla?").arg(m_tabWidget->count())); dialog.setCheckBoxText(tr("Don't ask again"));