Don't remove an empty list of paths - Qt warns about it

This commit is contained in:
baldurk
2017-04-27 17:01:37 +01:00
parent 0f8e25a103
commit fee690b844
+2 -1
View File
@@ -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)
{