fix: canonical*File*Path()
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
parent
62c59820cf
commit
2321d9c065
@ -193,7 +193,7 @@ void BlockedModsDialog::setupWatch()
|
|||||||
void BlockedModsDialog::watchPath(QString path, bool watch_subdirectories)
|
void BlockedModsDialog::watchPath(QString path, bool watch_subdirectories)
|
||||||
{
|
{
|
||||||
auto to_watch = QFileInfo(path);
|
auto to_watch = QFileInfo(path);
|
||||||
auto to_watch_path = to_watch.canonicalPath();
|
auto to_watch_path = to_watch.canonicalFilePath();
|
||||||
if (m_watcher.directories().contains(to_watch_path))
|
if (m_watcher.directories().contains(to_watch_path))
|
||||||
return; // don't watch the same path twice (no loops!)
|
return; // don't watch the same path twice (no loops!)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user