mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Move editHotkey out of class definition
Also since parent is setup correctly, remove the redundant delete
This commit is contained in:
parent
94909d9b92
commit
4d4097d819
2 changed files with 1 additions and 3 deletions
|
@ -138,7 +138,7 @@ AddNewTorrentDialog::AddNewTorrentDialog(const BitTorrent::AddTorrentParams &inP
|
||||||
// Signal / slots
|
// Signal / slots
|
||||||
connect(ui->adv_button, SIGNAL(clicked(bool)), SLOT(showAdvancedSettings(bool)));
|
connect(ui->adv_button, SIGNAL(clicked(bool)), SLOT(showAdvancedSettings(bool)));
|
||||||
connect(ui->doNotDeleteTorrentCheckBox, SIGNAL(clicked(bool)), SLOT(doNotDeleteTorrentClicked(bool)));
|
connect(ui->doNotDeleteTorrentCheckBox, SIGNAL(clicked(bool)), SLOT(doNotDeleteTorrentClicked(bool)));
|
||||||
editHotkey = new QShortcut(Qt::Key_F2, ui->contentTreeView, 0, 0, Qt::WidgetShortcut);
|
QShortcut *editHotkey = new QShortcut(Qt::Key_F2, ui->contentTreeView, 0, 0, Qt::WidgetShortcut);
|
||||||
connect(editHotkey, SIGNAL(activated()), SLOT(renameSelectedFile()));
|
connect(editHotkey, SIGNAL(activated()), SLOT(renameSelectedFile()));
|
||||||
connect(ui->contentTreeView, SIGNAL(doubleClicked(QModelIndex)), SLOT(renameSelectedFile()));
|
connect(ui->contentTreeView, SIGNAL(doubleClicked(QModelIndex)), SLOT(renameSelectedFile()));
|
||||||
|
|
||||||
|
@ -151,7 +151,6 @@ AddNewTorrentDialog::~AddNewTorrentDialog()
|
||||||
delete ui;
|
delete ui;
|
||||||
if (m_contentModel)
|
if (m_contentModel)
|
||||||
delete m_contentModel;
|
delete m_contentModel;
|
||||||
delete editHotkey;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AddNewTorrentDialog::isEnabled()
|
bool AddNewTorrentDialog::isEnabled()
|
||||||
|
|
|
@ -110,7 +110,6 @@ private:
|
||||||
QString m_filePath;
|
QString m_filePath;
|
||||||
BitTorrent::InfoHash m_hash;
|
BitTorrent::InfoHash m_hash;
|
||||||
BitTorrent::TorrentInfo m_torrentInfo;
|
BitTorrent::TorrentInfo m_torrentInfo;
|
||||||
QShortcut *editHotkey;
|
|
||||||
QByteArray m_headerState;
|
QByteArray m_headerState;
|
||||||
int m_oldIndex;
|
int m_oldIndex;
|
||||||
QScopedPointer<TorrentFileGuard> m_torrentGuard;
|
QScopedPointer<TorrentFileGuard> m_torrentGuard;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue