Ticket #2801: themecache.patch

File themecache.patch, 896 bytes (added by Karl Hiramoto <karl@…>, 13 years ago)
  • libs/libmyth/mythcontext.cpp

     
    12981298
    12991299void MythContext::ClearOldImageCache(void)
    13001300{
    1301     QString cachedirname = MythContext::GetConfDir() + "/themecache/";
     1301    QString cachedirname = MythContext::GetConfDir() + "/themecache."+ d->m_localhostname +"/";
    13021302
    13031303    d->themecachedir = cachedirname + GetSetting("Theme") + "." +
    13041304                       QString::number(d->m_screenwidth) + "." +
     
    13421342
    13431343void MythContext::RemoveCacheDir(const QString &dirname)
    13441344{
    1345     QString cachedirname = MythContext::GetConfDir() + "/themecache/";
    1346 
     1345    QString cachedirname = MythContext::GetConfDir() + "/themecache."+ d->m_localhostname +"/";
    13471346    if (!dirname.startsWith(cachedirname))
    13481347        return;
    13491348