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()