summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2024-02-22 04:50:07 +0300
committerAlexander Golubev <fatzer2@gmail.com>2024-02-22 05:49:11 +0300
commiteed7134d3213d05a8afa96df56bbd1dfb1706d9d (patch)
tree8e6f0c10387160865623600f5eeabe81cac311c3 /src
parent486b7ac573a28fe45ebef5494c27c81cfbe9d8ef (diff)
downloadgwenview-eed7134d3213d05a8afa96df56bbd1dfb1706d9d.tar.gz
gwenview-eed7134d3213d05a8afa96df56bbd1dfb1706d9d.zip
Update FileThumbnailView's grid upon finishing loading thumbnails
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/gvcore/filethumbnailview.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gvcore/filethumbnailview.cpp b/src/gvcore/filethumbnailview.cpp
index 543fa78..a6a3a1a 100644
--- a/src/gvcore/filethumbnailview.cpp
+++ b/src/gvcore/filethumbnailview.cpp
@@ -389,6 +389,9 @@ void FileThumbnailView::stopThumbnailUpdate() {
if (!d->mThumbnailLoadJob.isNull()) {
d->mThumbnailLoadJob->kill(false);
d->mThumbnailLoadJob=nullptr;
+ // The job loads image dimensions and this may add extra line to the descriptions, which
+ // may mess up the grid, even if the job is canceled, some items may be already updated.
+ arrangeItemsInGrid();
}
}
@@ -399,6 +402,8 @@ void FileThumbnailView::slotUpdateEnded() {
d->mProgressWidget=0L;
BusyLevelManager::instance()->setBusyLevel( this, BUSY_NONE );
+ // Besides thumbnails the job loads image dimensions and this may mess up the grid
+ arrangeItemsInGrid();
}