From e7a5ec46f5577656acd1ce44b34e761193ab015b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 17 Aug 2021 11:14:42 -0700 Subject: undo/device: adjust device management infrastructure We no longer need the remove infrastructure, and the edit nickname function becomes much more intuitive to use by passing in the dive computer for which we want to create a nickname instead of the internal index into the array of devices. This also removes / simplifies the device list update signals in the DiveListNotifier. Signed-off-by: Dirk Hohndel --- core/subsurface-qt/divelistnotifier.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'core/subsurface-qt') diff --git a/core/subsurface-qt/divelistnotifier.h b/core/subsurface-qt/divelistnotifier.h index 033458915..a778f7d91 100644 --- a/core/subsurface-qt/divelistnotifier.h +++ b/core/subsurface-qt/divelistnotifier.h @@ -132,9 +132,7 @@ signals: void picturesAdded(dive *d, QVector pics); // Devices related signals - void deviceAdded(int index); - void deviceDeleted(int index); - void deviceEdited(int index); + void deviceEdited(); // Filter related signals void filterPresetAdded(int index); -- cgit v1.2.3-70-g09d2