Skip to content

Commit

Permalink
Mythfrontend: Fix incorrect busy dialog creation
Browse files Browse the repository at this point in the history
This removes the busy dialog created in GrabberSettings::Load() since
- Load() should not perform any UI operations
- LoadInBackground() already opens a busy dialog
  • Loading branch information
natanojl committed Jul 8, 2012
1 parent 24c688e commit d07523a
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions mythtv/programs/mythfrontend/grabbersettings.cpp
Expand Up @@ -85,21 +85,6 @@ GrabberSettings::~GrabberSettings()

void GrabberSettings::Load(void)
{
QString busymessage = tr("Searching for data sources...");
MythScreenStack *popupStack = GetMythMainWindow()->GetStack("popup stack");
MythUIBusyDialog *busyPopup = new MythUIBusyDialog(busymessage, popupStack,
"grabberbusydialog");

if (busyPopup->Create())
{
popupStack->AddScreen(busyPopup, false);
}
else
{
delete busyPopup;
busyPopup = NULL;
}

QDir TVScriptPath = QString("%1metadata/Television/").arg(GetShareDir());
QStringList TVScripts = TVScriptPath.entryList(QDir::Files);
QDir MovieScriptPath = QString("%1metadata/Movie/").arg(GetShareDir());
Expand Down Expand Up @@ -188,12 +173,6 @@ void GrabberSettings::Load(void)
}
}
}

if (busyPopup)
{
busyPopup->Close();
busyPopup = NULL;
}
}

void GrabberSettings::Init(void)
Expand Down

0 comments on commit d07523a

Please sign in to comment.