Commit 9d496ff1 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Quick commands dialog: use "run" term consistently, avoid Yes/No buttons

Yes/No buttons in dialogs are discouraged (not only) by KDE HIG in favour
of actions terms.
parent 8185f46c
Pipeline #202758 passed with stage
in 4 minutes and 37 seconds
......@@ -157,7 +157,7 @@ void QuickCommandsWidget::updateCommand()
void QuickCommandsWidget::invokeCommand(const QModelIndex &idx)
{
if (!ui->warning->toPlainText().isEmpty()) {
QMessageBox::warning(this, QStringLiteral("Shell Errors"), i18n("Please fix all the warnings before trying to execute this script"));
QMessageBox::warning(this, QStringLiteral("Shell Errors"), i18n("Please fix all the warnings before trying to run this script"));
return;
}
......@@ -181,10 +181,10 @@ void QuickCommandsWidget::runCommand()
{
if (!ui->warning->toPlainText().isEmpty()) {
auto choice = KMessageBox::questionYesNo(this,
i18n("There are some errors on the script, do you really want to execute it?"),
i18n("There are some errors on the script, do you really want to run it?"),
i18n("Shell Errors"),
KStandardGuiItem::yes(),
KStandardGuiItem::no(),
KGuiItem(i18nc("@action:button", "Run"), QStringLiteral("system-run")),
KStandardGuiItem::cancel(),
QStringLiteral("quick-commands-question"));
if (choice == KMessageBox::ButtonCode::No) {
return;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment