Prevent rescanning all dirs if no dir ID specified
This commit is contained in:
parent
49862f2701
commit
144feb426c
|
@ -352,6 +352,12 @@ bool SyncthingConnection::resumeAllDirs()
|
|||
*/
|
||||
void SyncthingConnection::rescan(const QString &dirId, const QString &relpath)
|
||||
{
|
||||
if (dirId.isEmpty()) {
|
||||
emit error(tr("Unable to rescan: No directory ID specified."), SyncthingErrorCategory::SpecificRequest, QNetworkReply::NoError,
|
||||
QNetworkRequest(), QByteArray());
|
||||
return;
|
||||
}
|
||||
|
||||
QUrlQuery query;
|
||||
query.addQueryItem(QStringLiteral("folder"), dirId);
|
||||
if (!relpath.isEmpty()) {
|
||||
|
|
Loading…
Reference in New Issue