Skip to content

Commit

Permalink
Address Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
TheForce172 committed Dec 30, 2024
1 parent 22ec235 commit 77de5c0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions qtfred/src/mission/dialogs/LoadoutEditorDialogModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -933,6 +933,7 @@ void LoadoutDialogModel::setRequiredWeapon(const SCP_vector<SCP_string>& list, c
}
set_modified();
buildCurrentLists();
modelChanged();
}

bool LoadoutDialogModel::getSkipValidation() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ void ReinforcementsDialogModel::setUseCount(int count)
for (auto& reinforcement : _selectedReinforcementIndices) {
std::get<1>(_reinforcementList[reinforcement]) = count;
}
modelChanged();
set_modified();
}

Expand All @@ -268,6 +269,7 @@ void ReinforcementsDialogModel::setBeforeArrivalDelay(int delay)
for (auto& reinforcement : _selectedReinforcementIndices) {
std::get<2>(_reinforcementList[reinforcement]) = delay;
}
modelChanged();
set_modified();
}

Expand Down
4 changes: 2 additions & 2 deletions qtfred/src/ui/FredView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ void FredView::orientEditorTriggered() {
auto dialog = new dialogs::ObjectOrientEditorDialog(this, _viewport);
dialog->setAttribute(Qt::WA_DeleteOnClose);
// This is a modal dialog
dialog->show();
dialog->exec();
}
void FredView::onUpdateEditorActions() {
ui->actionObjects->setEnabled(query_valid_object(fred->currentObject));
Expand Down Expand Up @@ -989,7 +989,7 @@ void FredView::on_actionSelectionList_triggered(bool) {
auto dialog = new dialogs::SelectionDialog(this, _viewport);
// This is a modal dialog
dialog->setAttribute(Qt::WA_DeleteOnClose);
dialog->show();
dialog->exec();
}
void FredView::on_actionOrbitSelected_triggered(bool enabled) {
_viewport->Lookat_mode = enabled;
Expand Down
2 changes: 1 addition & 1 deletion qtfred/src/ui/dialogs/MissionSpecDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ void MissionSpecDialog::squadronNameChanged(const QString & string) {
void MissionSpecDialog::on_customWingNameButton_clicked() {
CustomWingNamesDialog* dialog = new CustomWingNamesDialog(this, _viewport);
dialog->setAttribute(Qt::WA_DeleteOnClose);
dialog->show();
dialog->exec();
}

void MissionSpecDialog::on_squadronLogoButton_clicked() {
Expand Down

0 comments on commit 77de5c0

Please sign in to comment.