SocketAPI: send the path with UPDATE_VIEW

This commit is contained in:
Klaas Freitag 2014-07-11 11:30:47 +02:00
parent 7772501cdf
commit a281b36d6f

View file

@ -222,9 +222,17 @@ void SocketApi::slotReadSocket()
}
}
void SocketApi::slotSyncStateChanged(const QString&)
void SocketApi::slotSyncStateChanged(const QString& alias)
{
broadcastMessage("UPDATE_VIEW");
QString msg = QLatin1String("UPDATE_VIEW");
Folder *f = FolderMan::instance()->folder(alias);
if (f) {
msg.append(QLatin1String(":"));
msg.append(QDir::cleanPath(f->path()));
}
broadcastMessage(msg);
}
void SocketApi::slotJobCompleted(const QString &folder, const SyncFileItem &item)