summaryrefslogtreecommitdiffstats
path: root/sigmodr/tree/TreeItem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmodr/tree/TreeItem.cpp')
-rw-r--r--sigmodr/tree/TreeItem.cpp4
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)