mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Do not break Dive Headings on trip mode when a delete dive is done.
When the dive is deleted, we force a recreation of the dive list, this is done because we were broken by design on the first transition to the Qt infrastructure - one thing to change for 4.1, but no time for 4.0. We forgot to ask the headers to 'please, span more than one row, please' when we recreate the model. easy =) Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4f9526ef81
commit
73cd8f3e56
1 changed files with 3 additions and 1 deletions
|
@ -255,6 +255,9 @@ void DiveListView::reload(DiveTripModel::Layout layout, bool forceSort)
|
|||
setAnimated(true);
|
||||
}
|
||||
}
|
||||
if(currentLayout == DiveTripModel::TREE){
|
||||
fixMessyQtModelBehaviour();
|
||||
}
|
||||
}
|
||||
|
||||
void DiveListView::reloadHeaderActions()
|
||||
|
@ -485,7 +488,6 @@ void DiveListView::deleteDive()
|
|||
}
|
||||
mark_divelist_changed(TRUE);
|
||||
mainWindow()->refreshDisplay();
|
||||
reload(currentLayout, false);
|
||||
}
|
||||
|
||||
void DiveListView::testSlot()
|
||||
|
|
Loading…
Add table
Reference in a new issue