Ref T691, tab focus in FP

This commit is contained in:
Klaus Basan
2019-06-28 16:25:43 +02:00
committed by Mat Sutcliffe
parent 90afa0b93b
commit fa8eed1611
2 changed files with 7 additions and 1 deletions

View File

@@ -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

View File

@@ -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 &quot;generator&quot;</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">