mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 21:20:19 +00:00
b3253304a5
When connecting a model to the TableModel class, it would connect clicking on an item to the remove() slot of the model. This breaks the program flow implied by the undo code: Ui --> Undo-Command --> Model --> UI Moreover, the naming of the remove() slot is illogical, because clicks can also have different effects, as for example in the cylinder-table. Therefore, move the connect() call from TableModel to the callers. In the case of TabDiveSite, move the remove() function from the model to the TabWidget, where it makes more sense. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> |
||
---|---|---|
.. | ||
maintab.cpp | ||
maintab.h | ||
maintab.ui | ||
TabBase.cpp | ||
TabBase.h | ||
TabDiveEquipment.cpp | ||
TabDiveEquipment.h | ||
TabDiveEquipment.ui | ||
TabDiveExtraInfo.cpp | ||
TabDiveExtraInfo.h | ||
TabDiveExtraInfo.ui | ||
TabDiveInformation.cpp | ||
TabDiveInformation.h | ||
TabDiveInformation.ui | ||
TabDivePhotos.cpp | ||
TabDivePhotos.h | ||
TabDivePhotos.ui | ||
TabDiveSite.cpp | ||
TabDiveSite.h | ||
TabDiveSite.ui | ||
TabDiveStatistics.cpp | ||
TabDiveStatistics.h | ||
TabDiveStatistics.ui |