summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkarsh Simha <akarsh@kde.org>2016-08-17 05:20:58 (GMT)
committerAkarsh Simha <akarsh@kde.org>2016-08-17 05:20:58 (GMT)
commitb43e6ecead87fac98e9fb5a494bafd6668c8bde9 (patch)
treed90de52e7353661fe6d96a538735fbddce11fb0c
parentf9fdbbbcff8e1a3908cb9f9eee25afbfbbf3b7e9 (diff)
Enable newly created SyncedCatalogComponent catalogs by default.
This ensures that any newly created SyncedCatalogComponent-based catalog is enabled by default at startup.
-rw-r--r--kstars/skycomponents/syncedcatalogcomponent.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/kstars/skycomponents/syncedcatalogcomponent.cpp b/kstars/skycomponents/syncedcatalogcomponent.cpp
index cc46d0a..be02db0 100644
--- a/kstars/skycomponents/syncedcatalogcomponent.cpp
+++ b/kstars/skycomponents/syncedcatalogcomponent.cpp
@@ -51,6 +51,7 @@ SyncedCatalogComponent::SyncedCatalogComponent( SkyComposite *parent,
db->AddCatalog( catData );
m_catId = db->FindCatalog( catname );
loadData();
+ Options::setShowCatalogNames( Options::showCatalogNames() << catname );
}
Q_ASSERT( m_catId >= 0 );
m_catColor = "#ff0000"; // FIXME: HARDCODED!