mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-09 14:27:56 +00:00
Moc bug workaround
This commit is contained in:
parent
ac80dd78a8
commit
d01385a7ac
@ -94,8 +94,8 @@ void TrackerList::setRowColor(int row, QColor color) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if LIBTORRENT_VERSION_MINOR < 15
|
|
||||||
void TrackerList::moveSelectionUp() {
|
void TrackerList::moveSelectionUp() {
|
||||||
|
#if LIBTORRENT_VERSION_MINOR < 15
|
||||||
QTorrentHandle h = properties->getCurrentTorrent();
|
QTorrentHandle h = properties->getCurrentTorrent();
|
||||||
if(!h.is_valid()) {
|
if(!h.is_valid()) {
|
||||||
clear();
|
clear();
|
||||||
@ -129,9 +129,11 @@ void TrackerList::moveSelectionUp() {
|
|||||||
h.replace_trackers(trackers);
|
h.replace_trackers(trackers);
|
||||||
// Reannounce
|
// Reannounce
|
||||||
h.force_reannounce();
|
h.force_reannounce();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void TrackerList::moveSelectionDown() {
|
void TrackerList::moveSelectionDown() {
|
||||||
|
#if LIBTORRENT_VERSION_MINOR < 15
|
||||||
QTorrentHandle h = properties->getCurrentTorrent();
|
QTorrentHandle h = properties->getCurrentTorrent();
|
||||||
if(!h.is_valid()) {
|
if(!h.is_valid()) {
|
||||||
clear();
|
clear();
|
||||||
@ -165,8 +167,8 @@ void TrackerList::moveSelectionDown() {
|
|||||||
h.replace_trackers(trackers);
|
h.replace_trackers(trackers);
|
||||||
// Reannounce
|
// Reannounce
|
||||||
h.force_reannounce();
|
h.force_reannounce();
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
void TrackerList::clear() {
|
void TrackerList::clear() {
|
||||||
qDeleteAll(tracker_items.values());
|
qDeleteAll(tracker_items.values());
|
||||||
|
@ -61,10 +61,8 @@ protected:
|
|||||||
public slots:
|
public slots:
|
||||||
void setRowColor(int row, QColor color);
|
void setRowColor(int row, QColor color);
|
||||||
|
|
||||||
#if LIBTORRENT_VERSION_MINOR < 15
|
|
||||||
void moveSelectionUp();
|
void moveSelectionUp();
|
||||||
void moveSelectionDown();
|
void moveSelectionDown();
|
||||||
#endif
|
|
||||||
|
|
||||||
void clear();
|
void clear();
|
||||||
void loadStickyItems(const QTorrentHandle &h);
|
void loadStickyItems(const QTorrentHandle &h);
|
||||||
|
Loading…
Reference in New Issue
Block a user