mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-05 16:19:10 +00:00
Allow to not ask again confirmation when opening 5 or more files or terminal at once
BUG: 473513
This commit is contained in:
parent
d27ee07de7
commit
11fb9344c0
|
@ -1189,11 +1189,12 @@ void DolphinMainWindow::openTerminalHere()
|
|||
{},
|
||||
#endif
|
||||
KGuiItem(i18ncp("@action:button", "Open %1 Terminal", "Open %1 Terminals", urls.count()), QStringLiteral("utilities-terminal")),
|
||||
KStandardGuiItem::cancel());
|
||||
KStandardGuiItem::cancel(),
|
||||
QStringLiteral("ConfirmOpenManyTerminals"));
|
||||
#if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 100, 0)
|
||||
if (answer != KMessageBox::PrimaryAction) {
|
||||
if (answer != KMessageBox::PrimaryAction && answer != KMessageBox::Continue) {
|
||||
#else
|
||||
if (answer != KMessageBox::Yes) {
|
||||
if (answer != KMessageBox::Yes && answer != KMessageBox::Continue) {
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1093,11 +1093,12 @@ void DolphinView::slotItemsActivated(const KItemSet &indexes)
|
|||
{},
|
||||
#endif
|
||||
KGuiItem(i18ncp("@action:button", "Open %1 Item", "Open %1 Items", indexes.count()), QStringLiteral("document-open")),
|
||||
KStandardGuiItem::cancel());
|
||||
KStandardGuiItem::cancel(),
|
||||
QStringLiteral("ConfirmOpenManyFolders"));
|
||||
#if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 100, 0)
|
||||
if (answer != KMessageBox::PrimaryAction) {
|
||||
if (answer != KMessageBox::PrimaryAction && answer != KMessageBox::Continue) {
|
||||
#else
|
||||
if (answer != KMessageBox::Yes) {
|
||||
if (answer != KMessageBox::Yes && answer != KMessageBox::Continue) {
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue