diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-05-21 13:33:31 -0400 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-05-21 13:33:31 -0400 |
| commit | 5367a9d2cafbac724075d249331b099e0a70a840 (patch) | |
| tree | dbc17b35c9907776c583c8f0bcab5409ec87d207 | |
| parent | 5cefc7a261d91b03fb327cbc4044c121ee7cada2 (diff) | |
A game cannot be added to or removed (have to close)
| -rw-r--r-- | sigmodr/tree/TreeItem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sigmodr/tree/TreeItem.cpp b/sigmodr/tree/TreeItem.cpp index 13ede980..06fc9aa8 100644 --- a/sigmodr/tree/TreeItem.cpp +++ b/sigmodr/tree/TreeItem.cpp @@ -554,12 +554,12 @@ bool TreeItem::canEdit() const bool TreeItem::canAddTo() const { - return ((m_type < EntryGame) || (m_type == EntryGame) || (m_type == EntryCoinList) || (m_type == EntryMapTrainer) || (m_type == EntryMapWildList) || (m_type == EntrySpecies)); + return ((m_type < EntryGame) || (m_type == EntryCoinList) || (m_type == EntryMapTrainer) || (m_type == EntryMapWildList) || (m_type == EntrySpecies)); } bool TreeItem::canRemove() const { - return ((EntryGame <= m_type) && (m_type != EntryRules)); + return (EntryRules < m_type); } QWidget* TreeItem::editWidget(QWidget* parent) |
