diff options
Diffstat (limited to 'desktop-widgets/simplewidgets.cpp')
-rw-r--r-- | desktop-widgets/simplewidgets.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/desktop-widgets/simplewidgets.cpp b/desktop-widgets/simplewidgets.cpp index 689517c76..0b79dfe6d 100644 --- a/desktop-widgets/simplewidgets.cpp +++ b/desktop-widgets/simplewidgets.cpp @@ -34,10 +34,8 @@ void RenumberDialog::buttonClicked(QAbstractButton *button) int newNr = ui.spinBox->value(); struct dive *d; for_each_dive (i, d) { - if (!selectedOnly || d->selected) { - invalidate_dive_cache(d); + if (!selectedOnly || d->selected) renumberedDives.append({ d, newNr++ }); - } } Command::renumberDives(renumberedDives); } |