diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:13:35 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:13:35 +0200 |
commit | 801e8b43b13f1cb67d9e9ba4aae5acb274ccdfbc (patch) | |
tree | 473f4a9ea5016f146fb2ff6085807bc91a84c84e /library/lock_holder.h | |
parent | 3.20 (diff) | |
download | FreeFileSync-801e8b43b13f1cb67d9e9ba4aae5acb274ccdfbc.tar.gz FreeFileSync-801e8b43b13f1cb67d9e9ba4aae5acb274ccdfbc.tar.bz2 FreeFileSync-801e8b43b13f1cb67d9e9ba4aae5acb274ccdfbc.zip |
3.21
Diffstat (limited to 'library/lock_holder.h')
-rw-r--r-- | library/lock_holder.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/library/lock_holder.h b/library/lock_holder.h index 172209dc..65471d5f 100644 --- a/library/lock_holder.h +++ b/library/lock_holder.h @@ -17,8 +17,14 @@ class LockHolder public: void addDir(const Zstring& dirnameFmt, ProcessCallback& procCallback) //resolved dirname ending with path separator { - if (dirnameFmt.empty() || - !dirExistsUpdating(dirnameFmt, procCallback)) + if (dirnameFmt.empty()) + return; + + std::wstring statusText = _("Searching for directory %x..."); + replace(statusText, L"%x", std::wstring(L"\"") + dirnameFmt + L"\"", false); + procCallback.reportInfo(statusText); + + if (!dirExistsUpdating(dirnameFmt, procCallback)) return; if (lockHolder.find(dirnameFmt) != lockHolder.end()) return; |