Permalink
Browse files

Mythfrontend: Fix incorrect busy dialog creation

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 d07523a83462b31ec33f8d4e706324f8892a3970
Showing with 0 additions and 21 deletions.
  1. +0 −21 mythtv/programs/mythfrontend/grabbersettings.cpp
@@ -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());
@@ -188,12 +173,6 @@ void GrabberSettings::Load(void)
}
}
}
if (busyPopup)
{
busyPopup->Close();
busyPopup = NULL;
}
}
void GrabberSettings::Init(void)

0 comments on commit d07523a

Please sign in to comment.