mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Refactor
This commit is contained in:
parent
ad0c008a3e
commit
689316db09
1 changed files with 2 additions and 2 deletions
|
@ -523,7 +523,7 @@ void TrackerFiltersList::addItem(const QString &tracker, const QString &hash)
|
||||||
void TrackerFiltersList::removeItem(const QString &tracker, const QString &hash)
|
void TrackerFiltersList::removeItem(const QString &tracker, const QString &hash)
|
||||||
{
|
{
|
||||||
QString host = getHost(tracker);
|
QString host = getHost(tracker);
|
||||||
QListWidgetItem *trackerItem = 0;
|
QListWidgetItem *trackerItem = nullptr;
|
||||||
QStringList tmp = m_trackers.value(host);
|
QStringList tmp = m_trackers.value(host);
|
||||||
int row = 0;
|
int row = 0;
|
||||||
|
|
||||||
|
@ -531,7 +531,7 @@ void TrackerFiltersList::removeItem(const QString &tracker, const QString &hash)
|
||||||
return;
|
return;
|
||||||
tmp.removeAll(hash);
|
tmp.removeAll(hash);
|
||||||
|
|
||||||
if (host != "") {
|
if (!host.isEmpty()) {
|
||||||
// Remove from 'Error' and 'Warning' view
|
// Remove from 'Error' and 'Warning' view
|
||||||
trackerSuccess(hash, tracker);
|
trackerSuccess(hash, tracker);
|
||||||
row = rowFromTracker(host);
|
row = rowFromTracker(host);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue