Skip to content

Commit

Permalink
Fix Theme Chooser downloading on remote frontends.
Browse files Browse the repository at this point in the history
This fixes theme downloading on remote frontends and also fixes an
issue with the Theme Chooser not reloading the theme once it has
downloaded.
  • Loading branch information
cpinkham committed Jun 22, 2011
1 parent f711743 commit caea1c7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mythtv/programs/mythfrontend/themechooser.cpp
Expand Up @@ -615,7 +615,7 @@ void ThemeChooser::saveAndReload(MythUIButtonListItem *item)
else
{
gCoreContext->SaveSetting("Theme", info->GetDirectoryName());
GetMythMainWindow()->JumpTo("Reload Theme");
GetMythMainWindow()->JumpTo("Reload Theme", false);
}
}

Expand Down Expand Up @@ -734,15 +734,17 @@ void ThemeChooser::customEvent(QEvent *e)
if (file.exists())
{
remoteFileIsLocal = true;
m_downloadFile = localFile;
}
else
{
GetMythDownloadManager()->queueDownload(
m_downloadFile, localFile, this);
OpenBusyPopup(tr("Copying %1 Theme Package")
.arg(m_downloadTheme->GetName()));
m_downloadFile = localFile;
return;
}
m_downloadFile = localFile;
}
else
{
Expand Down Expand Up @@ -793,7 +795,7 @@ void ThemeChooser::customEvent(QEvent *e)
SendMythSystemEvent(event);

gCoreContext->SaveSetting("Theme", m_downloadTheme->GetDirectoryName());
GetMythMainWindow()->JumpTo("Reload Theme");
GetMythMainWindow()->JumpTo("Reload Theme", false);
}
}
}
Expand Down

0 comments on commit caea1c7

Please sign in to comment.