diff --git a/src/gui/folderman.cpp b/src/gui/folderman.cpp index 909f0787dee2a..73e1f80d4ee2f 100644 --- a/src/gui/folderman.cpp +++ b/src/gui/folderman.cpp @@ -1501,6 +1501,7 @@ void FolderMan::editFileLocally(const QString &accountDisplayName, const QString constexpr auto HTTP_OK_CODE = 200; connect(checkTokenForEditLocally, &SimpleApiJob::resultReceived, checkTokenForEditLocally, [this, folderForFile, localFilePath, showError, accountFound, relPath] (int statusCode) { if (statusCode != HTTP_OK_CODE) { + Systray::instance()->destroyEditFileLocallyLoadingDialog(); showError(accountFound, tr("Could not validate the request to open a file from server."), relPath); qCInfo(lcFolderMan()) << "token check result" << statusCode; return;