Commit f4963c09 authored by Aurélien Gâteau's avatar Aurélien Gâteau
Browse files

Regenerate thumbnails when the files are modified outside of Gwenview

parent bacb72e5
......@@ -471,6 +471,15 @@ void ThumbnailView::rowsInserted(const QModelIndex& parent, int start, int end)
void ThumbnailView::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight) {
QListView::dataChanged(topLeft, bottomRight);
for (int row = topLeft.row(); row <= bottomRight.row(); ++row) {
QModelIndex index = model()->index(row, 0);
KUrl url = urlForIndex(index);
if (!url.isValid()) {
kWarning() << "Invalid url for index" << index << ". This should not happen!";
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment