diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-06-25 13:02:11 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-07-02 10:10:19 -0400 |
| commit | fb93d9ff2d1c158fb546471f6e18e4dc9b965c2f (patch) | |
| tree | 3e26533b31dfdd420c422f508f62d1edd71d6f09 /src/modinfodialogimages.cpp | |
| parent | 2b57172eb8ab23f2fab580be73c570f44500ed8d (diff) | |
nexus tab: fixed to only make one request, changed css to match nexus more closely
bbcode now supports [img width=x,height=x]
images tab: don't reload the original image
Diffstat (limited to 'src/modinfodialogimages.cpp')
| -rw-r--r-- | src/modinfodialogimages.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modinfodialogimages.cpp b/src/modinfodialogimages.cpp index 22c004e6..9b0e98c5 100644 --- a/src/modinfodialogimages.cpp +++ b/src/modinfodialogimages.cpp @@ -282,14 +282,14 @@ bool ImagesTab::needsReload(const File& file, const QSize& imageSize) const void ImagesTab::reload(File& file, const QSize& scaledSize) { - file.original = {}; - file.thumbnail = {}; file.failed = false; - if (!file.original.load(file.path)) { - qCritical() << "failed to load image from " << file.path; - file.failed = true; - return; + if (file.original.isNull()) { + if (!file.original.load(file.path)) { + qCritical() << "failed to load image from " << file.path; + file.failed = true; + return; + } } file.thumbnail = file.original.scaled( |
