Skip to content
This repository
Browse code

remove CFileItem::SetLabel2 override and use base class CGUIListItem:…

…:SetLabel2

override wasn't setting control invalid (needed for GUI redraw) when label2 changed value, base class does it
fixes static items in containers not redrawing, when just label2 is changing
  • Loading branch information...
commit 954ec0d12dd4cdc312aace65fb16a9cb75872d42 1 parent 004ebdd
Michal Piechowiak authored
6  xbmc/FileItem.cpp
@@ -1334,12 +1334,6 @@ void CFileItem::SetLabel(const CStdString &strLabel)
1334 1334
   CGUIListItem::SetLabel(strLabel);
1335 1335
 }
1336 1336
 
1337  
-void CFileItem::SetLabel2(const CStdString &strLabel)
1338  
-{
1339  
-  m_strLabel2 = strLabel;
1340  
-}
1341  
-
1342  
-
1343 1337
 void CFileItem::SetFileSizeLabel()
1344 1338
 {
1345 1339
   if( m_bIsFolder && m_dwSize == 0 )
1  xbmc/FileItem.h
@@ -173,7 +173,6 @@ class CFileItem :
173 173
   void FillInDefaultIcon();
174 174
   void SetFileSizeLabel();
175 175
   virtual void SetLabel(const CStdString &strLabel);
176  
-  virtual void SetLabel2(const CStdString &strLabel);
177 176
   CURL GetAsUrl() const;
178 177
   int GetVideoContentType() const; /* return VIDEODB_CONTENT_TYPE, but don't want to include videodb in this header */
179 178
   bool IsLabelPreformated() const { return m_bLabelPreformated; }

0 notes on commit 954ec0d

Please sign in to comment.
Something went wrong with that request. Please try again.