Skip to content

Commit

Permalink
Revert "Set a default "state" for buttonlists."
Browse files Browse the repository at this point in the history
Stuart pointed out that the state really should be "default" instead of
"normal".

A "default" state is already defined as the 'default' state.
This reverts commit e3e7a76.
  • Loading branch information
jpoet committed Jul 23, 2011
1 parent 5077086 commit 3f67450
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions mythtv/libs/libmythui/mythuibuttonlist.cpp
Expand Up @@ -1611,7 +1611,7 @@ int MythUIButtonList::PageUp(void)
(realButton->GetCurrentState());
if (buttonstate == NULL)
{
LOG(VB_GENERAL, LOG_ERR,
LOG(VB_GENERAL, LOG_ERR,
"PageUp: Failed to query buttonlist state");
return pos;
}
Expand Down Expand Up @@ -2669,9 +2669,6 @@ MythUIButtonListItem::MythUIButtonListItem(MythUIButtonList* lbtype,
if (state >= NotChecked)
m_checkable = true;

// Set default "status"
m_states.insert("status", "normal");

if (m_parent)
m_parent->InsertItem(this, listPosition);
}
Expand All @@ -2693,9 +2690,6 @@ MythUIButtonListItem::MythUIButtonListItem(MythUIButtonList* lbtype,
m_state = CantCheck;
m_showArrow = false;

// Set default "status"
m_states.insert("status", "normal");

if (m_parent)
m_parent->InsertItem(this, listPosition);
}
Expand Down

0 comments on commit 3f67450

Please sign in to comment.