mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
removed potential memory leak in TransfersDialog
This commit is contained in:
parent
52cf66a536
commit
acd059bdf0
@ -219,8 +219,8 @@ TransfersDialog::TransfersDialog(QWidget *parent)
|
||||
|
||||
// workaround for Qt bug, should be solved in next Qt release 4.7.0
|
||||
// http://bugreports.qt.nokia.com/browse/QTBUG-8270
|
||||
QShortcut *Shortcut = new QShortcut(QKeySequence (Qt::Key_Delete), ui.downloadList, 0, 0, Qt::WidgetShortcut);
|
||||
connect(Shortcut, SIGNAL(activated()), this, SLOT( cancel ()));
|
||||
mShortcut = new QShortcut(QKeySequence (Qt::Key_Delete), ui.downloadList, 0, 0, Qt::WidgetShortcut);
|
||||
connect(mShortcut, SIGNAL(activated()), this, SLOT( cancel ()));
|
||||
|
||||
//Selection Setup
|
||||
selection = ui.downloadList->selectionModel();
|
||||
|
@ -31,6 +31,7 @@
|
||||
|
||||
#define IMAGE_TRANSFERS ":/icons/ktorrent_128.png"
|
||||
|
||||
class QShortcut;
|
||||
class DLListDelegate;
|
||||
class ULListDelegate;
|
||||
class QStandardItemModel;
|
||||
@ -271,6 +272,8 @@ public slots:
|
||||
qlonglong getLastDL(int row, QStandardItemModel *model);
|
||||
qlonglong getPath(int row, QStandardItemModel *model);
|
||||
QString getSources(int row, QStandardItemModel *model);
|
||||
|
||||
QShortcut *mShortcut ;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user