From 5367a9d2cafbac724075d249331b099e0a70a840 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 21 May 2009 13:33:31 -0400 Subject: A game cannot be added to or removed (have to close) --- sigmodr/tree/TreeItem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sigmodr/tree/TreeItem.cpp') 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) -- cgit