Skip to content

Commit

Permalink
Fix sidebar groupby column names error
Browse files Browse the repository at this point in the history
The visual headings are not reset when the view is reset, for
example after startup. This means the wrong columns are offered
on the activity popup menu for group by.

The resetView() function needed to call columnsChanged() to get
the visual headings reset.
  • Loading branch information
liversedge committed Mar 9, 2013
1 parent c9dffd2 commit 9b677e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/RideNavigator.cpp
Expand Up @@ -124,7 +124,6 @@ RideNavigator::RideNavigator(MainWindow *parent, bool mainwindow) : main(parent)

// we accept drag and drop operations
setAcceptDrops(true);
columnsChanged(); // set visual headings etc
}

RideNavigator::~RideNavigator()
Expand Down Expand Up @@ -261,6 +260,8 @@ RideNavigator::resetView()

// Select the current ride
rideTreeSelectionChanged();

columnsChanged();
}

void RideNavigator::searchStrings(QStringList list)
Expand Down

0 comments on commit 9b677e6

Please sign in to comment.