mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Add check against empty files somehow adding to recent file lists
This commit is contained in:
@@ -341,6 +341,12 @@ void AddRecentFile(rdcarray<rdcstr> &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);
|
||||
|
||||
Reference in New Issue
Block a user