1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

[CloseDialog] Change text - there will always be more than 1 tab opened

This commit is contained in:
David Rosca 2014-07-08 19:26:41 +02:00
parent af8650d2fd
commit 9ed63f6323
2 changed files with 2 additions and 2 deletions

View File

@ -1387,7 +1387,7 @@ void BrowserWindow::closeEvent(QCloseEvent* event)
if (askOnClose && m_tabWidget->normalTabsCount() > 1) { if (askOnClose && m_tabWidget->normalTabsCount() > 1) {
CheckBoxDialog dialog(QDialogButtonBox::Yes | QDialogButtonBox::No, this); CheckBoxDialog dialog(QDialogButtonBox::Yes | QDialogButtonBox::No, this);
dialog.setText(tr("There are still %n open tab(s) and your session won't be stored. \nAre you sure to close this window?", "", m_tabWidget->count())); dialog.setText(tr("There are still %n open tabs and your session won't be stored. \nAre you sure to close this window?", "", m_tabWidget->count()));
dialog.setCheckBoxText(tr("Don't ask again")); dialog.setCheckBoxText(tr("Don't ask again"));
dialog.setWindowTitle(tr("There are still open tabs")); dialog.setWindowTitle(tr("There are still open tabs"));
dialog.setIcon(IconProvider::standardIcon(QStyle::SP_MessageBoxWarning)); dialog.setIcon(IconProvider::standardIcon(QStyle::SP_MessageBoxWarning));

View File

@ -1148,7 +1148,7 @@ Please install latest version of QupZilla.</source>
</message> </message>
<message numerus="yes"> <message numerus="yes">
<location filename="../src/lib/app/browserwindow.cpp" line="1390"/> <location filename="../src/lib/app/browserwindow.cpp" line="1390"/>
<source>There are still %n open tab(s) and your session won&apos;t be stored. <source>There are still %n open tabs and your session won&apos;t be stored.
Are you sure to close this window?</source> Are you sure to close this window?</source>
<translation type="unfinished"> <translation type="unfinished">
<numerusform></numerusform> <numerusform></numerusform>