mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 13:05:51 +03:00
parent
8b63a6f29b
commit
a3e7f513e6
1 changed files with 6 additions and 1 deletions
|
@ -349,7 +349,12 @@ void SocketApi::broadcastMessage( const QString& verb, const QString& path, cons
|
|||
}
|
||||
if( !path.isEmpty() ) {
|
||||
msg.append(QLatin1Char(':'));
|
||||
msg.append(QDir::toNativeSeparators(path));
|
||||
QFileInfo fi(path);
|
||||
auto canon = fi.canonicalFilePath();
|
||||
if (canon.isEmpty()) { // just in case the file do not exist
|
||||
fi = fi.absoluteFilePath();
|
||||
}
|
||||
msg.append(QDir::toNativeSeparators(canon));
|
||||
}
|
||||
|
||||
// sendMessage already has a debug output
|
||||
|
|
Loading…
Reference in a new issue