Skip to content

Commit 706bd32

Browse files
keizieequeim
authored andcommitted
Change rename torrents shortcut to plain constant
1 parent b1370a5 commit 706bd32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui/screens/mainwindow/mainwindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ namespace tremotesf {
641641
//: Torrent's context menu item
642642
qApp->translate("tremotesf", "&Rename")
643643
);
644-
mRenameTorrentAction->setShortcuts(QKeySequence::listFromString("F2"));
644+
mRenameTorrentAction->setShortcut(Qt::Key_F2);
645645
QObject::connect(mRenameTorrentAction, &QAction::triggered, this, [this] {
646646
const auto indexes = mTorrentsView.selectionModel()->selectedRows();
647647
if (indexes.size() == 1) {

0 commit comments

Comments
 (0)