diff options
author | George Hazan <george.hazan@gmail.com> | 2023-07-19 15:23:41 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-07-19 15:23:41 +0300 |
commit | 1f093124cba611950c465933812736315a0f630b (patch) | |
tree | 44f20aef24519cc4291fd15ec62d75cd044e3729 /src/mir_app | |
parent | db8b4d13f503fb472ae9c8c2314597ede2ed6e98 (diff) |
fixes #3587 (PluginUpdater: не создавать пустой бэкап, когда существующие файлы не изменились)
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/profilemanager.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mir_app/src/profilemanager.cpp b/src/mir_app/src/profilemanager.cpp index ab7f00edf0..2a8d409a42 100644 --- a/src/mir_app/src/profilemanager.cpp +++ b/src/mir_app/src/profilemanager.cpp @@ -103,10 +103,7 @@ static BOOL EnumProfilesForList(const wchar_t *tszFullPath, wchar_t *profile, CC static int findProfiles(CCtrlListView &list, const wchar_t *szProfile)
{
// find in Miranda NG profile subfolders
- MFilePath searchspec;
- searchspec.Format(L"%s\\*.*", g_profileDir);
-
- for (auto &it: searchspec.search()) {
+ for (auto &it: MFilePath(g_profileDir).search()) {
// find all subfolders except "." and ".."
if (!it.isDir() || !wcscmp(it.getPath(), L".") || !wcscmp(it.getPath(), L".."))
continue;
|