mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 22:15:37 +08:00
Handle initial null position from CCoordinateDialog
Summary: CCoordinateDialog is setup with an initial null position. The user has to manually set one in case own aircraft position is de-selected to proceed with weather fetching. Previously the null position was accepted and passed on to the weather request with undefined results. Reviewers: #swift_pilot_client Maniphest Tasks: T406 Differential Revision: https://dev.swift-project.org/D81
This commit is contained in:
committed by
Mat Sutcliffe
parent
96b77c64d8
commit
3db811f11d
@@ -140,6 +140,11 @@ namespace BlackGui
|
||||
ui->le_LngSecFrag->setReadOnly(readonly);
|
||||
ui->le_Longitude->setReadOnly(readonly);
|
||||
|
||||
ui->rb_E->setEnabled(!readonly);
|
||||
ui->rb_N->setEnabled(!readonly);
|
||||
ui->rb_S->setEnabled(!readonly);
|
||||
ui->rb_W->setEnabled(!readonly);
|
||||
|
||||
ui->le_Location->setReadOnly(readonly);
|
||||
ui->le_Location->setVisible(!readonly); // does not make sense to show it in ro, no reverse lookup
|
||||
ui->lbl_Location->setVisible(!readonly);
|
||||
|
||||
@@ -6,10 +6,16 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>740</width>
|
||||
<height>144</height>
|
||||
<width>976</width>
|
||||
<height>162</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Frame</string>
|
||||
</property>
|
||||
@@ -325,7 +331,7 @@
|
||||
<resources/>
|
||||
<connections/>
|
||||
<buttongroups>
|
||||
<buttongroup name="bg_NS"/>
|
||||
<buttongroup name="bg_EW"/>
|
||||
<buttongroup name="bg_NS"/>
|
||||
</buttongroups>
|
||||
</ui>
|
||||
|
||||
Reference in New Issue
Block a user