diff --git a/src/gui/properties/trackerlist.cpp b/src/gui/properties/trackerlist.cpp index 70cf0e07f..50e0857a2 100644 --- a/src/gui/properties/trackerlist.cpp +++ b/src/gui/properties/trackerlist.cpp @@ -79,6 +79,7 @@ TrackerList::TrackerList(PropertiesWidget *properties): QTreeWidget(), propertie editHotkey = new QShortcut(QKeySequence("F2"), this, SLOT(editSelectedTracker()), 0, Qt::WidgetShortcut); connect(this, SIGNAL(doubleClicked(QModelIndex)), SLOT(editSelectedTracker())); deleteHotkey = new QShortcut(QKeySequence(QKeySequence::Delete), this, SLOT(deleteSelectedTrackers()), 0, Qt::WidgetShortcut); + copyHotkey = new QShortcut(QKeySequence(Qt::ControlModifier + Qt::Key_C), this, SLOT(copyTrackerUrl()), 0, Qt::WidgetShortcut); loadSettings(); } @@ -86,6 +87,7 @@ TrackerList::TrackerList(PropertiesWidget *properties): QTreeWidget(), propertie TrackerList::~TrackerList() { delete editHotkey; delete deleteHotkey; + delete copyHotkey; saveSettings(); } diff --git a/src/gui/properties/trackerlist.h b/src/gui/properties/trackerlist.h index a02ddbb10..4895676ac 100644 --- a/src/gui/properties/trackerlist.h +++ b/src/gui/properties/trackerlist.h @@ -59,6 +59,7 @@ private: QTreeWidgetItem* lsd_item; QShortcut *editHotkey; QShortcut *deleteHotkey; + QShortcut *copyHotkey; public: TrackerList(PropertiesWidget *properties);