diff options
Diffstat (limited to 'src/gui/models/serverslistmodel.h')
-rw-r--r-- | src/gui/models/serverslistmodel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/models/serverslistmodel.h b/src/gui/models/serverslistmodel.h index 453c1fa09..935fd3422 100644 --- a/src/gui/models/serverslistmodel.h +++ b/src/gui/models/serverslistmodel.h @@ -42,7 +42,7 @@ class ServersListModel final : public ListModel ServersListModel(ServerInfos *const servers, ServerDialog *const parent) : mServers(servers), - mVersionStrings(servers ? servers->size() : 0, + mVersionStrings(servers != nullptr ? servers->size() : 0, VersionString(0, "")), mParent(parent) { @@ -83,7 +83,7 @@ class ServersListModel final : public ListModel if (index < 0 || index >= CAST_S32(mVersionStrings.size())) return; - if (version.empty() || !gui) + if (version.empty() || (gui == nullptr)) { mVersionStrings[index] = VersionString(0, ""); } |