From c59f9b95bbed7631038ea028f68f9ce7a82609b0 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Wed, 18 Feb 2015 00:08:47 +0100 Subject: Do not add working directory. This creates strange behavior. Files should be searched relative to the documents, not to the working directory. --- src/plugins/filesystem/FileLocator.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/filesystem/FileLocator.cpp b/src/plugins/filesystem/FileLocator.cpp index d2b4bb6..2fd5483 100644 --- a/src/plugins/filesystem/FileLocator.cpp +++ b/src/plugins/filesystem/FileLocator.cpp @@ -116,11 +116,6 @@ void FileLocator::addDefaultSearchPaths() #ifndef NDEBUG addDefaultSearchPaths(SpecialPaths::getDebugDataDir()); #endif - // also add working directory. - addSearchPath(".", {ResourceType::UNKNOWN, ResourceType::DOMAIN_DESC, - ResourceType::TYPESYSTEM, ResourceType::DOCUMENT, - ResourceType::ATTRIBUTES, ResourceType::STYLESHEET, - ResourceType::SCRIPT, ResourceType::DATA}); } void FileLocator::addUnittestSearchPath(const std::string &subdir, -- cgit v1.2.3