Skip to content

Commit

Permalink
Fix viewer window errors not being translated (issue #2705)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Jun 16, 2022
1 parent cb7fb0d commit a973b52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gui/src/viewer/viewer-window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -797,13 +797,13 @@ void ViewerWindow::replyFinishedImage(const QSharedPointer<Image> &img, const QL
error(this, tr("File is too big to be displayed.\n%1").arg(m_image->url().toString()));
}
} else if (res.result == Image::SaveResult::NotFound) {
showLoadingError("Image not found.");
showLoadingError(tr("Image not found."));
} else if (res.result == Image::SaveResult::NetworkError) {
showLoadingError("Error loading the image.");
showLoadingError(tr("Error loading the image."));
} else if (res.result == Image::SaveResult::DetailsLoadError) {
showLoadingError("Error loading the image's details.");
showLoadingError(tr("Error loading the image's details."));
} else if (res.result == Image::SaveResult::Error) {
showLoadingError("Error saving the image.");
showLoadingError(tr("Error saving the image."));
} else {
m_imagePath = res.path;
m_loadedImage = true;
Expand Down

0 comments on commit a973b52

Please sign in to comment.