From 33e910f5bbe1cd1f16a74ea4f761f20e1f8a7ea0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 8 Dec 2023 15:55:45 +0300 Subject: =?UTF-8?q?fixes=20#4023=20(=D0=A1=D1=82=D1=80=D0=B0=D0=BD=D0=BD?= =?UTF-8?q?=D0=BE=D0=B5=20=D0=BF=D0=BE=D0=B2=D0=B5=D0=B4=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5,=20=D0=B5=D1=81=D0=BB=D0=B8=20=D0=B2=20=D0=B8=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=20=D0=BF=D1=80=D0=BE=D1=84=D0=B8=D0=BB=D1=8F?= =?UTF-8?q?=20=D0=B5=D1=81=D1=82=D1=8C=20.dat)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mir_app/src/database.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mir_app') 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); -- cgit v1.2.3