zapit/src/bouquets.cpp: set channel user name also for non-present channels,

else username is lost after any ubouquets.xml save.
(fix for commit 2644b30b6a)
This commit is contained in:
[CST] Focus
2015-01-15 16:35:11 +03:00
parent 0debbfcc7c
commit 55bf8603c9

View File

@@ -452,6 +452,8 @@ void CBouquetManager::parseBouquetsXml(const char *fname, bool bUser)
CServiceManager::getInstance()->AddChannel(chan); CServiceManager::getInstance()->AddChannel(chan);
chan->flags = CZapitChannel::NOT_FOUND; chan->flags = CZapitChannel::NOT_FOUND;
chan->bLocked = clock; chan->bLocked = clock;
if(!(uname.empty()))
chan->setUserName(uname);
newBouquet->addService(chan); newBouquet->addService(chan);
CServiceManager::getInstance()->SetServicesChanged(false); CServiceManager::getInstance()->SetServicesChanged(false);
} }