1
0
Fork 0

Maintenance: MPServersModel

type correctness
This commit is contained in:
Scott Giese 2021-02-20 22:29:55 -06:00
parent caad29e7c8
commit 2c9e2d86db
2 changed files with 2 additions and 2 deletions

View file

@ -181,7 +181,7 @@ QString MPServersModel::currentServer() const
return (m_currentIndex == 1) ? "__custom__" : "__noservers__";
}
if (m_currentIndex == m_servers.size()) {
if (static_cast<std::vector<MPServersModel::ServerInfo>::size_type>(m_currentIndex) == m_servers.size()) {
return "__custom__";
}

View file

@ -66,7 +66,7 @@ private:
};
std::vector<ServerInfo> m_servers;
unsigned int m_currentIndex = 0;
int m_currentIndex = 0;
};
#endif // MPSERVERSMODEL_H