diff options
author | bunnei <bunneidev@gmail.com> | 2020-08-17 18:24:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-17 18:24:58 +0200 |
commit | 3472c00b3b8a490813eba1cb4a45c95dce5c471f (patch) | |
tree | 5e163a6deb8172a86fc9bea216dd1e0ac204c7a4 /src | |
parent | Merge pull request #4494 from lioncash/transcode (diff) | |
parent | configure_hotkeys: Don't translate empty strings (diff) | |
download | yuzu-3472c00b3b8a490813eba1cb4a45c95dce5c471f.tar yuzu-3472c00b3b8a490813eba1cb4a45c95dce5c471f.tar.gz yuzu-3472c00b3b8a490813eba1cb4a45c95dce5c471f.tar.bz2 yuzu-3472c00b3b8a490813eba1cb4a45c95dce5c471f.tar.lz yuzu-3472c00b3b8a490813eba1cb4a45c95dce5c471f.tar.xz yuzu-3472c00b3b8a490813eba1cb4a45c95dce5c471f.tar.zst yuzu-3472c00b3b8a490813eba1cb4a45c95dce5c471f.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/yuzu/configuration/configure_hotkeys.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu/configuration/configure_hotkeys.cpp b/src/yuzu/configuration/configure_hotkeys.cpp index 6f7fd4414..cbee51a5e 100644 --- a/src/yuzu/configuration/configure_hotkeys.cpp +++ b/src/yuzu/configuration/configure_hotkeys.cpp @@ -154,7 +154,7 @@ void ConfigureHotkeys::ClearAll() { const QStandardItem* parent = model->item(r, 0); 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)); } }); - 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)); } |