issue #65 - Auto config feature using Zeroconf/Bonjour [no-build]

renamed tryFixNoServer to fixNoServer
This commit is contained in:
jerry 2014-08-26 11:27:17 +00:00
parent a2d3b5c7e2
commit aa2accf5a6
2 changed files with 3 additions and 3 deletions

View File

@ -272,7 +272,7 @@ int ServerConfig::autoAddScreen(const QString name)
int serverIndex = -1; int serverIndex = -1;
int targetIndex = -1; int targetIndex = -1;
if (!findScreenName(m_ServerName, serverIndex)) { if (!findScreenName(m_ServerName, serverIndex)) {
if (!tryFixNoServer(m_ServerName, serverIndex)) { if (!fixNoServer(m_ServerName, serverIndex)) {
return kAutoAddScreenNoServer; return kAutoAddScreenNoServer;
} }
} }
@ -314,7 +314,7 @@ bool ServerConfig::findScreenName(const QString& name, int& index)
return found; return found;
} }
bool ServerConfig::tryFixNoServer(const QString& name, int& index) bool ServerConfig::fixNoServer(const QString& name, int& index)
{ {
bool fixed = false; bool fixed = false;
if (screens()[serverDefaultIndex].isNull()) { if (screens()[serverDefaultIndex].isNull()) {

View File

@ -92,7 +92,7 @@ class ServerConfig : public BaseConfig
private: private:
bool findScreenName(const QString& name, int& index); bool findScreenName(const QString& name, int& index);
bool tryFixNoServer(const QString& name, int& index); bool fixNoServer(const QString& name, int& index);
private: private:
QSettings* m_pSettings; QSettings* m_pSettings;