From 1378245a632d04b81be21532dae657eeb6d897ec Mon Sep 17 00:00:00 2001 From: Nick Korotysh Date: Wed, 4 Oct 2017 17:43:25 +0300 Subject: [PATCH] show delete accelerator key in menu. closes #7508 --- src/gui/mainwindow.cpp | 1 + src/gui/transferlistwidget.cpp | 1 - src/gui/transferlistwidget.h | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 9f506ddcf..1525f0a93 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -839,6 +839,7 @@ void MainWindow::createKeyboardShortcuts() { m_ui->actionCreateTorrent->setShortcut(QKeySequence::New); m_ui->actionOpen->setShortcut(QKeySequence::Open); + m_ui->actionDelete->setShortcut(QKeySequence::Delete); m_ui->actionDownloadFromURL->setShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_O); m_ui->actionExit->setShortcut(Qt::CTRL + Qt::Key_Q); diff --git a/src/gui/transferlistwidget.cpp b/src/gui/transferlistwidget.cpp index a811293cb..0e67b5db3 100644 --- a/src/gui/transferlistwidget.cpp +++ b/src/gui/transferlistwidget.cpp @@ -285,7 +285,6 @@ TransferListWidget::TransferListWidget(QWidget *parent, MainWindow *mainWindow) connect(header(), SIGNAL(sortIndicatorChanged(int, Qt::SortOrder)), this, SLOT(saveSettings())); m_editHotkey = new QShortcut(Qt::Key_F2, this, SLOT(renameSelectedTorrent()), 0, Qt::WidgetShortcut); - m_deleteHotkey = new QShortcut(QKeySequence::Delete, this, SLOT(softDeleteSelectedTorrents()), 0, Qt::WidgetShortcut); m_permDeleteHotkey = new QShortcut(Qt::SHIFT + Qt::Key_Delete, this, SLOT(permDeleteSelectedTorrents()), 0, Qt::WidgetShortcut); m_doubleClickHotkey = new QShortcut(Qt::Key_Return, this, SLOT(torrentDoubleClicked()), 0, Qt::WidgetShortcut); m_recheckHotkey = new QShortcut(Qt::CTRL + Qt::Key_R, this, SLOT(recheckSelectedTorrents()), 0, Qt::WidgetShortcut); diff --git a/src/gui/transferlistwidget.h b/src/gui/transferlistwidget.h index 2ad24ab69..a7c67dc37 100644 --- a/src/gui/transferlistwidget.h +++ b/src/gui/transferlistwidget.h @@ -132,7 +132,6 @@ private: TransferListSortModel *m_sortFilterModel; MainWindow *m_mainWindow; QShortcut *m_editHotkey; - QShortcut *m_deleteHotkey; QShortcut *m_permDeleteHotkey; QShortcut *m_doubleClickHotkey; QShortcut *m_recheckHotkey;