mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Ref T691, tab focus in FP
This commit is contained in:
committed by
Mat Sutcliffe
parent
90afa0b93b
commit
fa8eed1611
@@ -544,7 +544,7 @@ namespace BlackGui
|
||||
void CFlightPlanComponent::loadFromDisk()
|
||||
{
|
||||
CStatusMessageList msgs;
|
||||
const QString fileName = QFileDialog::getOpenFileName(nullptr, tr("Load flight plan"), this->getDefaultFilename(true), "Flight plans (*.json *.sfp *.vfp);;swift (*.json *.txt);;vPilot (*.vfp);;SB4 (*.sfp)");
|
||||
const QString fileName = QFileDialog::getOpenFileName(nullptr, tr("Load flight plan"), this->getDefaultFilename(true), "Flight plans (*.json *.sfp *.vfp *.xml);;swift (*.json *.txt);;SimBrief (*.xml);;vPilot (*.vfp);;SB4 (*.sfp)");
|
||||
if (fileName.isEmpty()) { return; }
|
||||
CFlightPlan fp = CFlightPlan::loadFromMultipleFormats(fileName, &msgs);
|
||||
if (!fp.hasCallsign()) { fp.setCallsign(ui->le_Callsign->text()); } // set callsign if it wasn't set
|
||||
|
||||
@@ -345,6 +345,9 @@
|
||||
<height>75</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="tabChangesFocus">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="placeholderText">
|
||||
<string>enter remarks here or use "generator"</string>
|
||||
</property>
|
||||
@@ -594,6 +597,9 @@
|
||||
<height>75</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="tabChangesFocus">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="3">
|
||||
|
||||
Reference in New Issue
Block a user