Skip to content

Commit

Permalink
[fix] recently added window was not updating after 28743c1
Browse files Browse the repository at this point in the history
  • Loading branch information
amet committed Jun 15, 2011
1 parent ec08d63 commit c14e0e4
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions xbmc/windows/GUIWindowHome.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "interfaces/AnnouncementManager.h"
#include "utils/log.h"
#include "settings/AdvancedSettings.h"
#include "utils/Variant.h"

using namespace ANNOUNCEMENT;

Expand Down Expand Up @@ -61,21 +62,21 @@ void CGUIWindowHome::Announce(EAnnouncementFlag flag, const char *sender, const

if (flag & VideoLibrary)
{
if ((strcmp(message, "UpdateVideo") == 0) ||
(strcmp(message, "RemoveVideo") == 0))
ra_flag |= (Video | Totals);

if (strcmp(message, "NewPlayCount") == 0)
ra_flag |= Totals;
if ((strcmp(message, "OnUpdate") == 0) ||
(strcmp(message, "OnRemove") == 0))
if (data.isMember("playcount"))
ra_flag |= Totals;
else
ra_flag |= (Video | Totals);
}
else if (flag & AudioLibrary)
{
if ((strcmp(message, "UpdateAudio") == 0) ||
(strcmp(message, "RemoveAudio") == 0))
ra_flag |= ( Audio | Totals );

if (strcmp(message, "NewPlayCount") == 0)
ra_flag |= Totals;
if ((strcmp(message, "OnUpdate") == 0) ||
(strcmp(message, "OnRemove") == 0))
if (data.isMember("playcount"))
ra_flag |= Totals;
else
ra_flag |= ( Audio | Totals );
}

// add the job immediatedly if the home window is active
Expand Down

0 comments on commit c14e0e4

Please sign in to comment.