mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Don't remove an empty list of paths - Qt warns about it
This commit is contained in:
@@ -3448,7 +3448,8 @@ void TextureViewer::reloadCustomShaders(const QString &filter)
|
||||
QDir::Files | QDir::NoDotAndDotDot, QDir::Name | QDir::IgnoreCase);
|
||||
|
||||
QStringList watchedFiles = m_Watcher->files();
|
||||
m_Watcher->removePaths(watchedFiles);
|
||||
if(!watchedFiles.isEmpty())
|
||||
m_Watcher->removePaths(watchedFiles);
|
||||
|
||||
for(const QString &f : files)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user