Commit f8808654 authored by Jasem Mutlaq's avatar Jasem Mutlaq

Indicate white site info was saved

parent 7f5e3012
......@@ -209,6 +209,16 @@ void ProfileEditor::setPi(ProfileInfo *value)
ui->profileIN->setText(pi->name);
ui->loadSiteCheck->setChecked(!pi->city.isEmpty());
if (pi->city.isEmpty() == false)
{
if (pi->province.isEmpty())
ui->loadSiteCheck->setText(ui->loadSiteCheck->text() + QString(" (%1, %2)").arg(pi->country).arg(pi->city));
else
ui->loadSiteCheck->setText(ui->loadSiteCheck->text() + QString(" (%1, %2, %3)").arg(pi->country).arg(pi->province).arg(pi->city));
}
if (pi->host.isEmpty() == false)
{
ui->remoteHost->setText(pi->host);
......
......@@ -29,6 +29,19 @@
<item>
<widget class="QLineEdit" name="profileIN"/>
</item>
<item>
<widget class="QCheckBox" name="loadSiteCheck">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Load current site settings when Ekos is online. This option should only be used when connecting to a remote geographic site.</string>
</property>
<property name="text">
<string>Site Info</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
......@@ -42,19 +55,6 @@
</property>
</spacer>
</item>
<item>
<widget class="QCheckBox" name="loadSiteCheck">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Load current site settings when Ekos is online. This option should only be used when connecting to a remote site.</string>
</property>
<property name="text">
<string>Save Site Info</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
......@@ -419,7 +419,6 @@
<tabstop>remoteMode</tabstop>
<tabstop>remoteHost</tabstop>
<tabstop>remotePort</tabstop>
<tabstop>loadSiteCheck</tabstop>
<tabstop>mountCombo</tabstop>
<tabstop>ccdCombo</tabstop>
<tabstop>guiderCombo</tabstop>
......
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