Browse Source

Fix possible folder watching issues on Windows

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
0af44eadb6
  1. 6
      src/filesystemwatcher.h

6
src/filesystemwatcher.h

@ -203,7 +203,11 @@ private:
void addTorrentsFromDir(const QDir &dir, QStringList &torrents) { void addTorrentsFromDir(const QDir &dir, QStringList &torrents) {
const QStringList files = dir.entryList(filters, QDir::Files, QDir::Unsorted); const QStringList files = dir.entryList(filters, QDir::Files, QDir::Unsorted);
foreach(const QString &file, files) { foreach(const QString &file, files) {
torrents << dir.canonicalPath() + '/' + file; #if defined(Q_WS_WIN) || defined(Q_OS_OS2)
torrents << dir.absoluteFilePath(file).replace("/", "\\");
#else
torrents << dir.absoluteFilePath(file);
#endif
} }
} }

Loading…
Cancel
Save