gui/timerlist.cpp: check CFEManager::getEnabledCount in place of CFEManager::FE_MODE_SINGLE

This commit is contained in:
[CST] Focus
2013-04-01 14:49:36 +04:00
parent f35065b918
commit fb7c0963cc

View File

@@ -1251,7 +1251,7 @@ int CTimerList::newTimer()
bool askUserOnTimerConflict(time_t announceTime, time_t stopTime) bool askUserOnTimerConflict(time_t announceTime, time_t stopTime)
{ {
if (CFEManager::getInstance()->getMode() == CFEManager::FE_MODE_SINGLE){ if (CFEManager::getInstance()->getEnabledCount() == 1) {
CTimerdClient Timer; CTimerdClient Timer;
CTimerd::TimerList overlappingTimers = Timer.getOverlappingTimers(announceTime,stopTime); CTimerd::TimerList overlappingTimers = Timer.getOverlappingTimers(announceTime,stopTime);
//printf("[CTimerdClient] attention\n%d\t%d\t%d conflicts with:\n",timerNew.announceTime,timerNew.alarmTime,timerNew.stopTime); //printf("[CTimerdClient] attention\n%d\t%d\t%d conflicts with:\n",timerNew.announceTime,timerNew.alarmTime,timerNew.stopTime);