From f6d133d7423bb0dc2f17c1c68dc50de1ff6824a7 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 26 Jun 2014 15:31:01 -0300 Subject: Fix crash when trying to add a dive or plan when a filter is active. The planner used the selected dive on the dive list, and when there's a filtering in action it can be in a state where there's no dive selected. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/divelistview.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'qt-ui/divelistview.cpp') diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp index 78186ecd0..4f5bfec26 100644 --- a/qt-ui/divelistview.cpp +++ b/qt-ui/divelistview.cpp @@ -825,3 +825,9 @@ void DiveListView::updateLastImageTimeOffset(const int offset) s.beginGroup("MainWindow"); s.setValue("LastImageTimeOffset", offset); } + +void DiveListView::endSearch() +{ + searchBox.clear(); + searchBox.hide(); +} -- cgit v1.2.3-70-g09d2