Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow all weather screens to be deleted

This resolves an issue where it was impossible to delete all screens. This
was especially problematic when those screens were attached to
grabbers which no longer existed.
  • Loading branch information...
commit 3f108e78d99970b1d408ccee1fba00e5c1e9f9fd 1 parent 2af2156
@stuartm stuartm authored
View
3  mythplugins/mythweather/mythweather/weather.cpp
@@ -151,6 +151,7 @@ bool Weather::SetupScreens()
{
if (m_firstSetup)
{
+ m_firstSetup = false;
// If no screens exist, run the setup
MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack();
@@ -167,8 +168,6 @@ bool Weather::SetupScreens()
{
delete ssetup;
}
-
- m_firstSetup = false;
}
else
{
View
7 mythplugins/mythweather/mythweather/weatherSetup.cpp
@@ -392,13 +392,6 @@ void ScreenSetup::loadData()
void ScreenSetup::saveData()
{
- if (m_activeList->GetCount() <= 0)
- {
- LOG(VB_GENERAL, LOG_ERR,
- "No Active Screens are defined. Nothing Saved.");
- return;
- }
-
// check if all active screens have sources/locations defined
QStringList notDefined;
Please sign in to comment.
Something went wrong with that request. Please try again.