From 2c9e2d86db88685adf8973b61b1952fb43e26300 Mon Sep 17 00:00:00 2001 From: Scott Giese Date: Sat, 20 Feb 2021 22:29:55 -0600 Subject: [PATCH] Maintenance: MPServersModel type correctness --- src/GUI/MPServersModel.cpp | 2 +- src/GUI/MPServersModel.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GUI/MPServersModel.cpp b/src/GUI/MPServersModel.cpp index a0cc64b54..f549d9d23 100644 --- a/src/GUI/MPServersModel.cpp +++ b/src/GUI/MPServersModel.cpp @@ -181,7 +181,7 @@ QString MPServersModel::currentServer() const return (m_currentIndex == 1) ? "__custom__" : "__noservers__"; } - if (m_currentIndex == m_servers.size()) { + if (static_cast::size_type>(m_currentIndex) == m_servers.size()) { return "__custom__"; } diff --git a/src/GUI/MPServersModel.h b/src/GUI/MPServersModel.h index 8f850ba62..d07267734 100644 --- a/src/GUI/MPServersModel.h +++ b/src/GUI/MPServersModel.h @@ -66,7 +66,7 @@ private: }; std::vector m_servers; - unsigned int m_currentIndex = 0; + int m_currentIndex = 0; }; #endif // MPSERVERSMODEL_H