┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWang Yu <[email protected]>2025-03-03 10:34:10 +0800
committerWang Yu <[email protected]>2025-03-03 10:36:56 +0800
commitdb6f10fb6c8117390ffdceb614e7e0f3c0ac2956 (patch)
tree571be80d34f8c54eff7d600b4c808aaf56929f5a
parent0e6ed9ba43839e5bf11b00bbaca0b283f4755742 (diff)
placespanel: Use correct loop index when connecting device signals
The loop in slotRowsInserted was using the 'first' parameter instead of the loop variable 'i', causing only the first index to be connected multiple times.
-rw-r--r--src/panels/places/placespanel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panels/places/placespanel.cpp b/src/panels/places/placespanel.cpp
index ba3451bd5..8b18d3324 100644
--- a/src/panels/places/placespanel.cpp
+++ b/src/panels/places/placespanel.cpp
@@ -257,7 +257,7 @@ void PlacesPanel::slotTearDownDone(const QModelIndex &index, Solid::ErrorType er
void PlacesPanel::slotRowsInserted(const QModelIndex &parent, int first, int last)
{
for (int i = first; i <= last; ++i) {
- connectDeviceSignals(model()->index(first, 0, parent));
+ connectDeviceSignals(model()->index(i, 0, parent));
}
}