mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Clean up the last merge
While the code is correct, splitting the class like this is silly and will confuse me later. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7e64e9a3a9
commit
f780a56847
1 changed files with 12 additions and 12 deletions
|
@ -1266,6 +1266,18 @@ void DiveComputerModel::remove(const QModelIndex& index)
|
|||
update();
|
||||
}
|
||||
|
||||
void DiveComputerModel::dropWorkingList()
|
||||
{
|
||||
// how do I prevent the memory leak ?
|
||||
}
|
||||
|
||||
void DiveComputerModel::keepWorkingList()
|
||||
{
|
||||
if (dcList.dcMap != dcWorkingMap)
|
||||
mark_divelist_changed(TRUE);
|
||||
dcList.dcMap = dcWorkingMap;
|
||||
}
|
||||
|
||||
/*#################################################################
|
||||
* #
|
||||
* # Yearly Statistics Model
|
||||
|
@ -1385,15 +1397,3 @@ void YearlyStatisticsModel::update_yearly_stats()
|
|||
rootItem->children.append(item);
|
||||
}
|
||||
}
|
||||
|
||||
void DiveComputerModel::dropWorkingList()
|
||||
{
|
||||
// how do I prevent the memory leak ?
|
||||
}
|
||||
|
||||
void DiveComputerModel::keepWorkingList()
|
||||
{
|
||||
if (dcList.dcMap != dcWorkingMap)
|
||||
mark_divelist_changed(TRUE);
|
||||
dcList.dcMap = dcWorkingMap;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue