summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/Utility.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'view/sharedcache/core/Utility.cpp')
-rw-r--r--view/sharedcache/core/Utility.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/view/sharedcache/core/Utility.cpp b/view/sharedcache/core/Utility.cpp
index 583770e6..0cffc03e 100644
--- a/view/sharedcache/core/Utility.cpp
+++ b/view/sharedcache/core/Utility.cpp
@@ -136,3 +136,12 @@ std::string BaseFileName(const std::string& path)
return path.substr(lastSlashPos + 1);
return path;
}
+
+bool IsSameFolder(Ref<ProjectFolder> a, Ref<ProjectFolder> b)
+{
+ if (!a && !b)
+ return true;
+ if (a && b)
+ return a->GetId() == b->GetId();
+ return false;
+}