another fix for 450bf1b6 (hopefully the last one)

This commit is contained in:
Andrzej Rybczak
2009-08-13 02:16:12 +02:00
parent 8bc5d73b06
commit 829a7a8d98

View File

@@ -37,8 +37,8 @@ void Outputs::Init()
w->HighlightColor(Config.main_highlight_color);
w->SetItemDisplayer(Display::Pairs);
FetchList();
isInitialized = 1;
FetchList();
}
void Outputs::SwitchTo()
@@ -109,6 +109,8 @@ void Outputs::MouseButtonPressed(MEVENT me)
void Outputs::FetchList()
{
if (!isInitialized)
return;
MPD::OutputList ol;
Mpd.GetOutputs(ol);
w->Clear();