Add isNetworkFileSystem() detection on Windows

This allows network mounts to be monitored correctly by polling timer.
This commit is contained in:
Chocobo1 2018-10-12 00:00:48 +08:00
parent fb8fad3fa1
commit cff5af2e76
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
4 changed files with 17 additions and 16 deletions

View file

@ -56,9 +56,7 @@ signals:
protected slots:
void scanLocalFolder(const QString &path);
void processPartialTorrents();
#ifndef Q_OS_WIN
void scanNetworkFolders();
#endif
private:
void processTorrentsInDir(const QDir &dir);
@ -67,10 +65,8 @@ private:
QHash<QString, int> m_partialTorrents;
QTimer m_partialTorrentTimer;
#ifndef Q_OS_WIN
QList<QDir> m_watchedFolders;
QTimer m_watchTimer;
#endif
};
#endif // FILESYSTEMWATCHER_H