SocketAPI: Don't mark .lnk files as ignored on windows. #2447

This commit is contained in:
Christian Kamm 2015-02-25 11:55:48 +01:00
parent f88398e776
commit 6f71bd9353

View file

@ -536,7 +536,13 @@ SyncFileStatus SocketApi::fileStatus(Folder *folder, const QString& systemFileNa
} }
// file is ignored? // file is ignored?
if( fi.isSymLink() ) { // Qt considers .lnk files symlinks on Windows so we need to work
// around that here.
if( fi.isSymLink()
#ifdef Q_OS_WIN
&& fi.suffix() != "lnk"
#endif
) {
return SyncFileStatus(SyncFileStatus::STATUS_IGNORE); return SyncFileStatus(SyncFileStatus::STATUS_IGNORE);
} }