diff options
-rw-r--r-- | core/selection.cpp | 2 | ||||
-rw-r--r-- | core/subsurface-qt/divelistnotifier.h | 2 | ||||
-rw-r--r-- | qt-models/divetripmodel.cpp | 6 | ||||
-rw-r--r-- | qt-models/divetripmodel.h | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/core/selection.cpp b/core/selection.cpp index 4890f6422..2919f6486 100644 --- a/core/selection.cpp +++ b/core/selection.cpp @@ -192,7 +192,7 @@ void setSelection(const std::vector<dive *> &selection, dive *currentDive) } // Send the new selection - emit diveListNotifier.divesSelected(divesToSelect, current_dive); + emit diveListNotifier.divesSelected(divesToSelect); } extern "C" void select_single_dive(dive *d) diff --git a/core/subsurface-qt/divelistnotifier.h b/core/subsurface-qt/divelistnotifier.h index fc7115a99..5ef25e832 100644 --- a/core/subsurface-qt/divelistnotifier.h +++ b/core/subsurface-qt/divelistnotifier.h @@ -94,7 +94,7 @@ signals: void tripChanged(dive_trip *trip, TripField field); // Selection changes - void divesSelected(const QVector<dive *> &dives, dive *current); + void divesSelected(const QVector<dive *> &dives); // Dive site signals. Add and delete events are sent per dive site and // provide an index into the global dive site table. diff --git a/qt-models/divetripmodel.cpp b/qt-models/divetripmodel.cpp index 4236b32c3..453a93c1e 100644 --- a/qt-models/divetripmodel.cpp +++ b/qt-models/divetripmodel.cpp @@ -475,7 +475,7 @@ void DiveTripModelBase::clear() clear_dive_file_data(); clearData(); oldCurrent = nullptr; - emit diveListNotifier.divesSelected({}, nullptr); // Inform profile, etc of changed selection + emit diveListNotifier.divesSelected({}); // Inform profile, etc of changed selection endResetModel(); emit diveListNotifier.numShownChanged(); } @@ -1404,7 +1404,7 @@ QModelIndex DiveTripModelTree::diveToIdx(const dive *d) const } } -void DiveTripModelTree::divesSelected(const QVector<dive *> &divesIn, dive *current) +void DiveTripModelTree::divesSelected(const QVector<dive *> &divesIn) { QVector <dive *> dives = visibleDives(divesIn); @@ -1664,7 +1664,7 @@ QModelIndex DiveTripModelList::diveToIdx(const dive *d) const return createIndex(it - items.begin(), 0); } -void DiveTripModelList::divesSelected(const QVector<dive *> &divesIn, dive *current) +void DiveTripModelList::divesSelected(const QVector<dive *> &divesIn) { QVector<dive *> dives = visibleDives(divesIn); diff --git a/qt-models/divetripmodel.h b/qt-models/divetripmodel.h index 4be678e27..97000aa23 100644 --- a/qt-models/divetripmodel.h +++ b/qt-models/divetripmodel.h @@ -113,7 +113,7 @@ public slots: void diveSiteChanged(dive_site *ds, int field); void divesChanged(const QVector<dive *> &dives); void divesTimeChanged(timestamp_t delta, const QVector<dive *> &dives); - void divesSelected(const QVector<dive *> &dives, dive *current); + void divesSelected(const QVector<dive *> &dives); void tripChanged(dive_trip *trip, TripField); void filterReset(); @@ -190,7 +190,7 @@ public slots: void divesTimeChanged(timestamp_t delta, const QVector<dive *> &dives); // Does nothing in list view. //void divesMovedBetweenTrips(dive_trip *from, dive_trip *to, bool deleteFrom, bool createTo, const QVector<dive *> &dives); - void divesSelected(const QVector<dive *> &dives, dive *current); + void divesSelected(const QVector<dive *> &dives); void filterReset(); public: |