From e93335ee5e56c7c1e50c1004d63fa2f835c6743c Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 16 May 2016 16:49:42 +0200 Subject: [PATCH] Fixed: Compilation with GCC --- code/ryzom/tools/client/ryzom_installer/src/profilesmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ryzom/tools/client/ryzom_installer/src/profilesmodel.cpp b/code/ryzom/tools/client/ryzom_installer/src/profilesmodel.cpp index dd9c97e40..9f8ee02ff 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/profilesmodel.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/profilesmodel.cpp @@ -60,7 +60,7 @@ int CProfilesModel::getIndexFromProfileID(const QString &profileId) const QString CProfilesModel::getProfileIDFromIndex(int index) const { - if (index < 0 || index >= m_profiles.size()) return -1; + if (index < 0 || index >= m_profiles.size()) return ""; return m_profiles[index].id; }