Maintenance: MPServersModel
type correctness
This commit is contained in:
parent
caad29e7c8
commit
2c9e2d86db
2 changed files with 2 additions and 2 deletions
|
@ -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__";
|
||||
}
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ private:
|
|||
};
|
||||
|
||||
std::vector<ServerInfo> m_servers;
|
||||
unsigned int m_currentIndex = 0;
|
||||
int m_currentIndex = 0;
|
||||
};
|
||||
|
||||
#endif // MPSERVERSMODEL_H
|
||||
|
|
Loading…
Reference in a new issue