]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Make sure to update display of all duplicate display name shares
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Thu, 17 Oct 2024 06:17:12 +0000 (14:17 +0800)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Fri, 18 Oct 2024 09:05:16 +0000 (11:05 +0200)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/filedetails/sharemodel.cpp

index df275c2daa738fd2c6a0126d52d1ed2692b9272e..96640e51e3ba3ff6bef3d61aad19c531c1a90316 100644 (file)
@@ -511,11 +511,15 @@ void ShareModel::slotSharesFetched(const QList<SharePtr> &shares)
             if (sharee->format() == otherSharee->format()) {
                 hasDuplicates = true; // Reassign is faster
                 _duplicateDisplayNameShareIndices.insert(j);
+                const auto targetIndex = index(j);
+                dataChanged(targetIndex, targetIndex, {Qt::DisplayRole});
             }
         }
 
         if (hasDuplicates) {
             _duplicateDisplayNameShareIndices.insert(i);
+            const auto targetIndex = index(i);
+            dataChanged(targetIndex, targetIndex, {Qt::DisplayRole});
         }
     }