Commit c978e45d authored by Rishab Arora's avatar Rishab Arora

Solved bug where hidden catalogs needed an extra toggle for display

parent 3272a35e
......@@ -316,8 +316,8 @@ void CatalogDB::AddEntry(const CatalogEntryData& catalog_entry) {
// Part 3: Add in Object Designation
skydb_.open();
QSqlQuery add_od(skydb_);
add_od.prepare("INSERT INTO ObjectDesignation (id_Catalog, UID_DSO, LongName,"
" IDNumber) VALUES (:catid, :rowuid, :longname, :id)");
add_od.prepare("INSERT INTO ObjectDesignation (id_Catalog, UID_DSO, LongName"
", IDNumber) VALUES (:catid, :rowuid, :longname, :id)");
add_od.bindValue("catid", catid);
add_od.bindValue("rowuid", rowuid);
add_od.bindValue("longname", catalog_entry.long_name);
......
......@@ -218,6 +218,8 @@ void OpsCatalog::slotSetDrawStarZoomOutMagnitude(double newValue) {
void OpsCatalog::slotApply() {
refreshCatalogList();
Options::setShowCatalogNames(m_CheckedCatalogNames);
Options::setStarDensity( kcfg_StarDensity->value() );
// Options::setMagLimitDrawStarZoomOut( kcfg_MagLimitDrawStarZoomOut->value() );
......@@ -229,6 +231,7 @@ void OpsCatalog::slotApply() {
}
updateCustomCatalogs();
KStars::Instance()->data()->skyComposite()->reloadDeepSky();
Options::setShowMessier( m_ShowMessier );
......@@ -236,8 +239,6 @@ void OpsCatalog::slotApply() {
Options::setShowNGC( m_ShowNGC );
Options::setShowIC( m_ShowIC );
Options::setShowCatalogNames(m_CheckedCatalogNames);
// update time for all objects because they might be not initialized
// it's needed when using horizontal coordinates
ksw->data()->setFullTimeUpdate();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment