From 72818a271005cbff9fab3e67dcf9c3d4541fb1fa Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Sat, 26 Jan 2013 13:14:32 +0000 Subject: [PATCH] UI Nits: Style selection wonky The splash screens broke the setting of the style selector in the toolbar. They got out of sync. This fixes that. FWIW, I introduced the bug! --- src/MainWindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index af83a61cd..9e00d0e40 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -1618,9 +1618,9 @@ MainWindow::selectAnalysis() scopebar->selected(2); #endif toolBox->setCurrentIndex(0); - setStyle(); } currentWindow = analWindow; + setStyle(); } void @@ -1661,9 +1661,9 @@ MainWindow::selectTrain() scopebar->selected(3); #endif toolBox->setCurrentIndex(2); - setStyle(); } currentWindow = trainWindow; + setStyle(); } void @@ -1699,9 +1699,9 @@ MainWindow::selectDiary() #endif toolBox->setCurrentIndex(1); gcCalendar->refresh(); // get that signal with the date range... - setStyle(); } currentWindow = diaryWindow; + setStyle(); } void @@ -1737,9 +1737,9 @@ MainWindow::selectHome() scopebar->selected(0); #endif toolBox->setCurrentIndex(3); - setStyle(); } currentWindow = homeWindow; + setStyle(); } void MainWindow::selectAthlete()