mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-11-01 12:57:52 +00:00
configure_hotkeys: Don't translate empty strings
There's no need to translate an empty string. This just gives translators unnecessary work.
This commit is contained in:
parent
db96034ea4
commit
e23289d869
1 changed files with 2 additions and 2 deletions
|
@ -154,7 +154,7 @@ void ConfigureHotkeys::ClearAll() {
|
||||||
const QStandardItem* parent = model->item(r, 0);
|
const QStandardItem* parent = model->item(r, 0);
|
||||||
|
|
||||||
for (int r2 = 0; r2 < parent->rowCount(); ++r2) {
|
for (int r2 = 0; r2 < parent->rowCount(); ++r2) {
|
||||||
model->item(r, 0)->child(r2, 1)->setText(tr(""));
|
model->item(r, 0)->child(r2, 1)->setText(QString{});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -186,7 +186,7 @@ void ConfigureHotkeys::PopupContextMenu(const QPoint& menu_location) {
|
||||||
model->setData(selected, default_key_sequence.toString(QKeySequence::NativeText));
|
model->setData(selected, default_key_sequence.toString(QKeySequence::NativeText));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
connect(clear, &QAction::triggered, [this, selected] { model->setData(selected, tr("")); });
|
connect(clear, &QAction::triggered, [this, selected] { model->setData(selected, QString{}); });
|
||||||
|
|
||||||
context_menu.exec(ui->hotkey_list->viewport()->mapToGlobal(menu_location));
|
context_menu.exec(ui->hotkey_list->viewport()->mapToGlobal(menu_location));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue