From 14bf90264ef4e93d3725b5065fee61f7149f1eae Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Wed, 15 Apr 2015 14:49:05 +0100 Subject: [PATCH] Renamed function, was reserved keyword on Mac #4522 --- src/gui/src/Fingerprint.cpp | 2 +- src/gui/src/Fingerprint.h | 2 +- src/gui/src/MainWindow.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/src/Fingerprint.cpp b/src/gui/src/Fingerprint.cpp index 0ff15a44..70b5c786 100644 --- a/src/gui/src/Fingerprint.cpp +++ b/src/gui/src/Fingerprint.cpp @@ -56,7 +56,7 @@ void Fingerprint::trust(const QString& fingerprintText) } } -bool Fingerprint::check(const QString& fingerprintText) +bool Fingerprint::exists(const QString& fingerprintText) { CoreInterface coreInterface; QString profileDir = coreInterface.getProfileDir(); diff --git a/src/gui/src/Fingerprint.h b/src/gui/src/Fingerprint.h index d494af0b..8618b521 100644 --- a/src/gui/src/Fingerprint.h +++ b/src/gui/src/Fingerprint.h @@ -26,7 +26,7 @@ private: public: void trust(const QString& fingerprintText); - bool check(const QString& fingerprintText); + bool exists(const QString& fingerprintText); public: static Fingerprint local(); diff --git a/src/gui/src/MainWindow.cpp b/src/gui/src/MainWindow.cpp index c4e8b0fc..794359f9 100644 --- a/src/gui/src/MainWindow.cpp +++ b/src/gui/src/MainWindow.cpp @@ -409,7 +409,7 @@ void MainWindow::checkFingerprint(const QString& line) } QString fingerprint = fingerprintRegex.cap(1); - if (Fingerprint::trustedServers().check(fingerprint)) { + if (Fingerprint::trustedServers().exists(fingerprint)) { return; }