QHBoxLayout* distance = new QHBoxLayout;
distance->addWidget(distanceLabel_);
distance->addWidget(distance_);
- onlyOnRoute_ = new QCheckBox(tr("Alert only if poi is in route"));
+ onlyOnRoute_ = new QCheckBox(tr("Alert only if poi is on route"));
onlyOnRoute_->setChecked(Settings::instance().value("alert_only_on_route", true).toBool());
ButtonBox* buttons = new ButtonBox;
void ThemeSchedulerSettings::clearScheduler()
{
- ThemeScheduler::instance().clear();
- loadItems();
+ if(!ThemeScheduler::instance().isEmpty())
+ {
+ ThemeScheduler::instance().clear();
+ loadItems();
+ }
}
void ThemeSchedulerSettings::loadItems()
currentWidget_ = itemList_;
layout_->addWidget(itemList_);
}
-
- QApplication::processEvents();
- adjustSize();
- QApplication::processEvents();
-
}
void ThemeSchedulerSettings::saveSettings()