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"));