summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-20 14:03:57 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-20 14:03:57 +0000
commit9da73945fa1a7614051c372648ec2a67775d10b9 (patch)
treed4df93126d5304f1b0496d3e8a2a468eb0f0ed29 /src
parent5161dd2a33e0e2147a40865a42461837aee5d7ed (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/modules/database/database.cpp6
1 files 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;