Commit 36098121 authored by Jasem Mutlaq's avatar Jasem Mutlaq Committed by Artem Fedoskin

Use QStringList removeDuplicates to remove any duplicates for now until a...

Use QStringList removeDuplicates to remove any duplicates for now until a re-work is done for DSO classes
parent 8b21b252
......@@ -71,6 +71,10 @@ void CatalogComponent::loadData() {
}
}
// Remove Duplicates
foreach(QStringList list, objectNames())
list.removeDuplicates();
CatalogData loaded_catalog_data;
KStarsData::Instance()->catalogdb()->GetCatalogData(m_catName, loaded_catalog_data);
m_catPrefix = loaded_catalog_data.prefix;
......
......@@ -161,7 +161,7 @@ void DeepSkyComponent::loadData()
float mag(1000.0);
int type, ingc, imess(-1), pa;
int pgc, ugc;
QString con, ss, name, name2, longname;
QString ss, name, name2, longname;
QString cat2;
// Designation
......@@ -318,6 +318,9 @@ void DeepSkyComponent::loadData()
deep_sky_parser.ShowProgress();
}
foreach(QStringList list, objectNames())
list.removeDuplicates();
}
void DeepSkyComponent::mergeSplitFiles() {
......
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