diff --git a/qrenderdoc/Code/Interface/PersistantConfig.cpp b/qrenderdoc/Code/Interface/PersistantConfig.cpp index c5b95dece..ae2cee92a 100644 --- a/qrenderdoc/Code/Interface/PersistantConfig.cpp +++ b/qrenderdoc/Code/Interface/PersistantConfig.cpp @@ -341,6 +341,12 @@ void AddRecentFile(rdcarray &recentList, const rdcstr &file, int maxItem QDir dir(file); QString path = dir.canonicalPath(); + if(path.isEmpty()) + { + qWarning() << "Got empty path from " << ToQStr(file); + return; + } + if(!recentList.contains(path)) { recentList.push_back(path);