From fb4700907dd22465490f49ab6f873cd4ae9a9519 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 18 Nov 2009 17:51:50 +0000 Subject: [PATCH] - Removed unused keyboard shortcut (and remove valgrind warning) --- src/GUI.cpp | 7 +++---- src/GUI.h | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/GUI.cpp b/src/GUI.cpp index 3f8f838e3..4131baacf 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -237,8 +237,7 @@ GUI::~GUI() { // Keyboard shortcuts delete switchSearchShortcut; delete switchSearchShortcut2; - delete switchDownShortcut; - delete switchUpShortcut; + delete switchTransferShortcut; delete switchRSSShortcut; qDebug("4"); delete BTSession; @@ -305,8 +304,8 @@ void GUI::createKeyboardShortcuts() { actionCreate_torrent->setShortcut(QKeySequence(QString::fromUtf8("Ctrl+N"))); actionOpen->setShortcut(QKeySequence(QString::fromUtf8("Ctrl+O"))); actionExit->setShortcut(QKeySequence(QString::fromUtf8("Ctrl+Q"))); - switchDownShortcut = new QShortcut(QKeySequence(tr("Alt+1", "shortcut to switch to first tab")), this); - connect(switchDownShortcut, SIGNAL(activated()), this, SLOT(displayTransferTab())); + switchTransferShortcut = new QShortcut(QKeySequence(tr("Alt+1", "shortcut to switch to first tab")), this); + connect(switchTransferShortcut, SIGNAL(activated()), this, SLOT(displayTransferTab())); switchSearchShortcut = new QShortcut(QKeySequence(tr("Alt+2", "shortcut to switch to third tab")), this); connect(switchSearchShortcut, SIGNAL(activated()), this, SLOT(displaySearchTab())); switchSearchShortcut2 = new QShortcut(QKeySequence(tr("Ctrl+F", "shortcut to switch to search tab")), this); diff --git a/src/GUI.h b/src/GUI.h index a69bf8317..3edb23499 100644 --- a/src/GUI.h +++ b/src/GUI.h @@ -87,8 +87,7 @@ class GUI : public QMainWindow, private Ui::MainWindow{ // Keyboard shortcuts QShortcut *switchSearchShortcut; QShortcut *switchSearchShortcut2; - QShortcut *switchDownShortcut; - QShortcut *switchUpShortcut; + QShortcut *switchTransferShortcut; QShortcut *switchRSSShortcut; QAction *prioSeparator; QAction *prioSeparator2;