Skip to content

Commit

Permalink
in case of validation errors during edit locally, close existing dialog
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Gallien <[email protected]>
  • Loading branch information
mgallien committed Oct 13, 2022
1 parent e1a4ec3 commit 0a00b8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/folderman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0a00b8d

Please sign in to comment.