diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index b1112e13ab..87f600bc14 100644 --- a/src/gui/folder.cpp +++ b/src/gui/folder.cpp @@ -123,9 +123,11 @@ Folder::~Folder() void Folder::checkLocalPath() { const QFileInfo fi(_definition.localPath); - _canonicalLocalPath = fi.canonicalFilePath(); - if( !_canonicalLocalPath.endsWith('/') ) { + if (_canonicalLocalPath.isEmpty()) { + qDebug() << "Broken symlink:" << _definition.localPath; + _canonicalLocalPath = _definition.localPath; + } else if( !_canonicalLocalPath.endsWith('/') ) { _canonicalLocalPath.append('/'); }