mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Fix WIN startup SEGV with scopebar no ICAL
.. pesky indexing into scopebar when ical not compiled in
This commit is contained in:
@@ -182,12 +182,20 @@ GcScopeBar::selected(int index)
|
||||
anal->setChecked(false);
|
||||
train->setChecked(false);
|
||||
|
||||
#ifdef GC_HAVE_ICAL
|
||||
switch (index) {
|
||||
case 0 : home->setChecked(true); break;
|
||||
case 1 : diary->setChecked(true); break;
|
||||
case 2 : anal->setChecked(true); break;
|
||||
case 3 : train->setChecked(true); break;
|
||||
}
|
||||
#else
|
||||
switch (index) {
|
||||
case 0 : home->setChecked(true); break;
|
||||
case 1 : anal->setChecked(true); break;
|
||||
case 2 : train->setChecked(true); break;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef Q_OS_MAC
|
||||
|
||||
Reference in New Issue
Block a user