mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
undo: switch SetpointDialog from divecomputer to dive + dc-number
Since pointers to divecomputers may not be stable, the undo commands take a dive + a divecomputer number. Update the SetpointDialog accordingly. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
adb53f9c18
commit
9a4718b46f
3 changed files with 8 additions and 7 deletions
|
@ -65,14 +65,15 @@ private:
|
|||
class SetpointDialog : public QDialog {
|
||||
Q_OBJECT
|
||||
public:
|
||||
SetpointDialog(struct divecomputer *divecomputer, int time);
|
||||
SetpointDialog(struct dive *d, int dcNr, int time);
|
||||
private
|
||||
slots:
|
||||
void buttonClicked(QAbstractButton *button);
|
||||
|
||||
private:
|
||||
Ui::SetpointDialog ui;
|
||||
struct divecomputer *dc;
|
||||
struct dive *d;
|
||||
int dcNr;
|
||||
int time;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue