From 0a00b8d45a9bdd550cbbe5b592c4a69b3ac68787 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Thu, 13 Oct 2022 12:17:41 +0200 Subject: [PATCH] in case of validation errors during edit locally, close existing dialog Signed-off-by: Matthieu Gallien --- src/gui/folderman.cpp | 1 + 1 file changed, 1 insertion(+) 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;