From edbfff62e8c04aa183d3d4a5cb37d3af6c52910d Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 22 Dec 2015 12:43:38 +0800 Subject: [PATCH] Fix typo --- src/gui/transferlistfilterswidget.cpp | 4 ++-- src/gui/transferlistfilterswidget.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/transferlistfilterswidget.cpp b/src/gui/transferlistfilterswidget.cpp index 456308188..1453d6311 100644 --- a/src/gui/transferlistfilterswidget.cpp +++ b/src/gui/transferlistfilterswidget.cpp @@ -733,9 +733,9 @@ int TrackerFiltersList::rowFromTracker(const QString &tracker) const return -1; } -QString TrackerFiltersList::getHost(const QString &trakcer) const +QString TrackerFiltersList::getHost(const QString &tracker) const { - QUrl url(trakcer); + QUrl url(tracker); QString longHost = url.host(); QString tld = url.topLevelDomain(); // We get empty tld when it is invalid or an IPv4/IPv6 address, diff --git a/src/gui/transferlistfilterswidget.h b/src/gui/transferlistfilterswidget.h index 5f9a42b4a..28336f77a 100644 --- a/src/gui/transferlistfilterswidget.h +++ b/src/gui/transferlistfilterswidget.h @@ -154,7 +154,7 @@ private: virtual void torrentAboutToBeDeleted(BitTorrent::TorrentHandle *const torrent); QString trackerFromRow(int row) const; int rowFromTracker(const QString &tracker) const; - QString getHost(const QString &trakcer) const; + QString getHost(const QString &tracker) const; QStringList getHashes(int row); void downloadFavicon(const QString &url);