aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-11-16 18:47:34 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-16 20:19:55 -0800
commit73cd8f3e569b5214b03dbc613a18d5d50dbec98f (patch)
tree81b068106ffe0faff78024521202571187e58718
parent4f9526ef8122f3496ee0ead986fcc10c500e0584 (diff)
downloadsubsurface-73cd8f3e569b5214b03dbc613a18d5d50dbec98f.tar.gz
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>
-rw-r--r--qt-ui/divelistview.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp
index a34484dba..4a35176b8 100644
--- a/qt-ui/divelistview.cpp
+++ b/qt-ui/divelistview.cpp
@@ -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()