All pastes #2127976 Raw Edit

ThemeChooser local FE download

public cpp v1 · immutable
#2127976 ·published 2012-03-14 01:24 UTC
rendered paste body
diff --git a/mythtv/programs/mythfrontend/themechooser.cpp b/mythtv/programs/mythfrontend/themechooser.cppindex c61c4c1..45daac4 100644--- a/mythtv/programs/mythfrontend/themechooser.cpp+++ b/mythtv/programs/mythfrontend/themechooser.cpp@@ -611,9 +613,16 @@ void ThemeChooser::saveAndReload(MythUIButtonListItem *item)          OpenBusyPopup(tr("Downloading %1 Theme").arg(info->GetName()));         m_downloadTheme = info;+#if 0         m_downloadFile = RemoteDownloadFile(downloadURL,                                             "Temp", baseName);         m_downloadState = dsDownloadingOnBackend;+#else+        QString localFile = GetConfDir() + "/tmp/" + baseName;+        GetMythDownloadManager()->queueDownload(downloadURL, localFile, this);+        m_downloadFile = localFile; +        m_downloadState = dsDownloadingOnFrontend;+#endif     }     else     {