Commit c6f15b3a authored by Akarsh Simha's avatar Akarsh Simha

Enable/disable automatic rsolution of unknown objects using the internet

parent 4eef9eb8
......@@ -321,7 +321,7 @@ void FindDialog::slotOk() {
filterList();
}
selObj = selectedObject();
if( ! selObj ) {
if( ! selObj && Options::resolveNamesOnline() ) {
// ==== FIXME: What follows is buggy testing code : please improve ====
// This code is expected to cause crashes / memory leaks
// because we don't commit the DSO data to the database, or
......
......@@ -123,6 +123,13 @@
<label>List for displaying custom object catalogs.</label>
<whatsthis>List of names for which custom catalogs are to be displayed.</whatsthis>
</entry>
<entry name="ResolveNamesOnline" type="Bool">
<label>Resolve names using online services.</label>
<whatsthis>Names of objects entered into the find dialog are
resolved using online services and stored in the database. This
option also toggles the display of such resolved objects on the
sky map.</whatsthis>
</entry>
</group>
<group name="indi">
......
......@@ -502,6 +502,21 @@
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout">
<item>
<widget class="QCheckBox" name="kcfg_ResolveNamesOnline">
<property name="text">
<string>Resolve names not known to KStars using online services</string>
</property>
<property name="toolTip">
<string>If this checkbox is checked, when an object name unknown to KStars is entered in the Find Dialog, KStars will contact online services (such as CDS Sesame) to learn about the object and then add it to the database.
The objects acquired in this manner are stored under a catalog that is called _Internet_Resolved as of this writing.</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout">
<property name="spacing">
......
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