From 03f357ef3a2bc013fbef4ebaa4b30afa5b210030 Mon Sep 17 00:00:00 2001 From: Mirek Fidler Date: Sun, 5 Jan 2025 09:46:06 +0100 Subject: [PATCH] ide: Fixed problem with background process --- uppsrc/ide/background.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uppsrc/ide/background.cpp b/uppsrc/ide/background.cpp index b47a63629..98fb171fc 100644 --- a/uppsrc/ide/background.cpp +++ b/uppsrc/ide/background.cpp @@ -18,6 +18,8 @@ void ForAllNests(Event&> fn) void GatherAllFiles(const String& path, Index& filei, VectorMap& file) { + if(path.GetCount() == 0) + return; Sleep(0); // This is supposed to be superlazy for(FindFile ff(path + "/*.*"); ff && !Thread::IsShutdownThreads(); ff.Next()) if(ff.IsFolder() && *ff.GetName() != '.')