From 9da73945fa1a7614051c372648ec2a67775d10b9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 20 Jul 2014 14:03:57 +0000 Subject: if one profile is ok and another one requires a conversion, we still need to display Profile Manager git-svn-id: http://svn.miranda-ng.org/main/trunk@9889 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/database/database.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/database/database.cpp b/src/modules/database/database.cpp index 4b496dca48..42c915b445 100644 --- a/src/modules/database/database.cpp +++ b/src/modules/database/database.cpp @@ -225,7 +225,7 @@ static void moveProfileDirProfiles(TCHAR *profiledir, BOOL isRootDir = TRUE) // returns 1 if a single profile (full path) is found within the profile dir static int getProfile1(TCHAR *szProfile, size_t cch, TCHAR *profiledir, BOOL * noProfiles) { - int found = 0, allfound = 0; + int found = 0; if (IsInsideRootDir(profiledir, false)) moveProfileDirProfiles(profiledir); @@ -261,7 +261,7 @@ static int getProfile1(TCHAR *szProfile, size_t cch, TCHAR *profiledir, BOOL * n _tcsncpy_s(szProfile, cch, newProfile, _TRUNCATE); case EGROKPRF_OBSOLETE: - allfound++; + found++; break; } } @@ -273,7 +273,7 @@ static int getProfile1(TCHAR *szProfile, size_t cch, TCHAR *profiledir, BOOL * n } if (noProfiles) - *noProfiles = (allfound == 0); + *noProfiles = (found == 0); if (nodprof && !reqfd) szProfile[0] = 0; -- cgit v1.2.3