Skip to content

Commit ce5efaf

Browse files
committed
refactor: Remove separate button to validate flightplan
The flightplan is already automatically validated when sending it to the server. To simplify the UI, this removes the possibility for this extra check.
1 parent f7bee83 commit ce5efaf

File tree

3 files changed

+0
-23
lines changed

3 files changed

+0
-23
lines changed

src/blackgui/components/flightplancomponent.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ namespace BlackGui::Components
124124
connect(ui->pb_Send, &QPushButton::pressed, this, &CFlightPlanComponent::sendFlightPlan, Qt::QueuedConnection);
125125
connect(ui->pb_Download, &QPushButton::pressed, this, &CFlightPlanComponent::loadFlightPlanFromNetwork, Qt::QueuedConnection);
126126
connect(ui->pb_Reset, &QPushButton::pressed, this, &CFlightPlanComponent::resetFlightPlan, Qt::QueuedConnection);
127-
connect(ui->pb_ValidateFlightPlan, &QPushButton::pressed, this, &CFlightPlanComponent::validateFlightPlan, Qt::QueuedConnection);
128127
connect(ui->tb_SyncWithSimulator, &QPushButton::released, this, &CFlightPlanComponent::syncWithSimulator, Qt::QueuedConnection);
129128
connect(ui->pb_Prefill, &QPushButton::pressed, this, &CFlightPlanComponent::anticipateValues, Qt::QueuedConnection);
130129
connect(ui->pb_SimBrief, &QPushButton::pressed, this, &CFlightPlanComponent::loadFromSimBrief, Qt::QueuedConnection);
@@ -528,13 +527,6 @@ namespace BlackGui::Components
528527
}
529528
}
530529

531-
void CFlightPlanComponent::validateFlightPlan()
532-
{
533-
CFlightPlan flightPlan;
534-
const CStatusMessageList messages = this->validateAndInitializeFlightPlan(flightPlan);
535-
this->showOverlayMessages(messages);
536-
}
537-
538530
void CFlightPlanComponent::resetFlightPlan()
539531
{
540532
this->prefillWithOwnAircraftData();

src/blackgui/components/flightplancomponent.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,6 @@ namespace BlackGui::Components
206206
//! Load Flightplan
207207
void loadFlightPlanFromNetwork();
208208

209-
//! Validate Flightplan
210-
void validateFlightPlan();
211-
212209
//! Remarks
213210
void buildRemarksString();
214211

src/blackgui/components/flightplancomponent.ui

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -708,17 +708,6 @@
708708
</property>
709709
</widget>
710710
</item>
711-
<item row="0" column="2">
712-
<widget class="QPushButton" name="pb_ValidateFlightPlan">
713-
<property name="text">
714-
<string>&amp;Validate</string>
715-
</property>
716-
<property name="icon">
717-
<iconset resource="../../blackmisc/blackmisc.qrc">
718-
<normaloff>:/diagona/icons/diagona/icons/abacus.png</normaloff>:/diagona/icons/diagona/icons/abacus.png</iconset>
719-
</property>
720-
</widget>
721-
</item>
722711
<item row="2" column="1">
723712
<widget class="QPushButton" name="pb_LoadDisk">
724713
<property name="toolTip">
@@ -1168,7 +1157,6 @@
11681157
<tabstop>le_LastSent</tabstop>
11691158
<tabstop>pb_Prefill</tabstop>
11701159
<tabstop>pb_Reset</tabstop>
1171-
<tabstop>pb_ValidateFlightPlan</tabstop>
11721160
<tabstop>pb_Send</tabstop>
11731161
<tabstop>pb_Download</tabstop>
11741162
<tabstop>pb_SimBrief</tabstop>

0 commit comments

Comments
 (0)