1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02:00

Check for normal tabs count when asking whether to close window.

- eg. don't take into account pinned tabs
This commit is contained in:
nowrep 2012-09-08 19:28:47 +02:00
parent a0457251a0
commit f548c45f6a

View File

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