summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkarsh Simha <akarsh@kde.org>2016-10-02 10:24:19 (GMT)
committerAkarsh Simha <akarsh@kde.org>2016-10-02 12:35:57 (GMT)
commit81e301153e6e89ce14bfad8944f9b87025a3fad3 (patch)
tree6d87d537fa26a8cb1a745a3d3ce3b017fc7d84a7
parent3ff4e3428c9f504bf20d20a4e0091c211340a507 (diff)
Fix custom catalog handling regression introduced by b32c9417353
Since the FindDialog now uses objectLists to search through the catalogs, custom catalogs must add object names to the objectLists data structure even in regular version of KStars, not just in KStarsLite.
-rw-r--r--kstars/skycomponents/catalogcomponent.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/kstars/skycomponents/catalogcomponent.cpp b/kstars/skycomponents/catalogcomponent.cpp
index 037294a..2bbfa2f 100644
--- a/kstars/skycomponents/catalogcomponent.cpp
+++ b/kstars/skycomponents/catalogcomponent.cpp
@@ -78,7 +78,7 @@ void CatalogComponent::_loadData( bool includeCatalogDesignation ) {
objectNames(names.at(iter).first).append(names.at(iter).second);
}
}
-#ifdef KSTARS_LITE
+
//FIXME - get rid of objectNames completely. For now only KStars Lite uses objectLists
for(int iter = 0; iter < m_ObjectList.size(); ++iter) {
SkyObject *obj = m_ObjectList[iter];
@@ -107,7 +107,6 @@ void CatalogComponent::_loadData( bool includeCatalogDesignation ) {
}
}
}
-#endif
// Remove Duplicates
foreach(QStringList list, objectNames())