summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-12-08 15:55:45 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-12-08 15:55:45 +0300
commit33e910f5bbe1cd1f16a74ea4f761f20e1f8a7ea0 (patch)
treeb4e7057bb8704caad4601aa9cb1d5b5a4fe17fbe /src
parent2df702e597311fe08c222743936e02d37a69d4f4 (diff)
fixes #4023 (Странное поведение, если в имени профиля есть .dat)
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/database.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mir_app/src/database.cpp b/src/mir_app/src/database.cpp
index 7b662e5ba4..0be441ee98 100644
--- a/src/mir_app/src/database.cpp
+++ b/src/mir_app/src/database.cpp
@@ -189,6 +189,9 @@ static void moveProfileDirProfiles(const wchar_t *profiledir, bool isRootDir)
pfd.Format(L"%s\\*.dat", profiledir);
for (auto &it: pfd.search()) {
+ if (it.isDir())
+ continue;
+
int idx = pfd.ReverseFind('\\');
if (idx != -1)
pfd.Trim(idx);