Skip to content

Commit

Permalink
fixed: window interceptor class
Browse files Browse the repository at this point in the history
now we actually catch the call from the core to window update call.
  • Loading branch information
notspiff committed Feb 14, 2018
1 parent 4617c99 commit 1404473
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions xbmc/interfaces/legacy/WindowInterceptor.h
Expand Up @@ -119,9 +119,6 @@ namespace XBMCAddon
protected:
CGUIWindow* get() override { return this; }

// this is only called from XBMC core and we only want it to return true every time
virtual bool Update(const String &strPath) { return true; }

public:
Interceptor(const char* specializedName,
Window* _window, int windowid) : P(windowid, ""),
Expand Down
2 changes: 1 addition & 1 deletion xbmc/interfaces/legacy/WindowXML.cpp
Expand Up @@ -83,7 +83,7 @@ namespace XBMCAddon
// CGUIMediaWindow
void GetContextButtons(int itemNumber, CContextButtons &buttons) override
{ XBMC_TRACE; if (up()) CGUIMediaWindow::GetContextButtons(itemNumber,buttons); else xwin->GetContextButtons(itemNumber,buttons); }
bool Update(const std::string &strPath) override
bool Update(const std::string &strPath, bool) override
{ XBMC_TRACE; return up() ? CGUIMediaWindow::Update(strPath) : xwin->Update(strPath); }
void SetupShares() override { XBMC_TRACE; if(up()) CGUIMediaWindow::SetupShares(); else checkedv(SetupShares()); }

Expand Down

0 comments on commit 1404473

Please sign in to comment.