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:
Tomaz Canabrava 2013-11-16 18:47:34 -02:00 committed by Dirk Hohndel
parent 4f9526ef81
commit 73cd8f3e56

View file

@ -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()