Fix WIN startup SEGV with scopebar no ICAL

.. pesky indexing into scopebar when ical not compiled in
This commit is contained in:
Mark Liversedge
2013-03-15 18:55:37 +00:00
parent 37dd62e4aa
commit c6530d6ba8

View File

@@ -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