Browse Source

- Removed unused keyboard shortcut (and remove valgrind warning)

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
fb4700907d
  1. 7
      src/GUI.cpp
  2. 3
      src/GUI.h

7
src/GUI.cpp

@ -237,8 +237,7 @@ GUI::~GUI() { @@ -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() { @@ -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);

3
src/GUI.h

@ -87,8 +87,7 @@ class GUI : public QMainWindow, private Ui::MainWindow{ @@ -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;

Loading…
Cancel
Save