From 28d0e917496ecfd681e8cd3e3032519867993f9b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 18 Aug 2018 12:55:50 +0300 Subject: fixes #1463 (old behavior of smart profile opening must be returned) --- src/mir_app/src/database.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mir_app') diff --git a/src/mir_app/src/database.cpp b/src/mir_app/src/database.cpp index 58e731c567..002be18879 100644 --- a/src/mir_app/src/database.cpp +++ b/src/mir_app/src/database.cpp @@ -255,6 +255,12 @@ static int getProfile1(wchar_t *szProfile, size_t cch, wchar_t *profiledir, BOOL continue; switch (touchDatabase(newProfile, nullptr)) { + case EGROKPRF_CANTREAD: + // profile might be locked by another Miranda + if (!Profile_CheckOpened(newProfile)) + break; + __fallthrough; + case 0: case EGROKPRF_OBSOLETE: if (++found == 1 && bNoDefaultProfile) -- cgit v1.2.3