Skip to content

Commit

Permalink
[refactor] Remove doubled connect statement
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxFleur committed Sep 7, 2024
1 parent ba3fc44 commit 6513c4f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/ui/table/dialog/AddCharacterDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ AddCharacterDialog::AddCharacterDialog(const bool modAddedToIni, QWidget *parent

connect(m_templatesWidget, &TemplatesWidget::characterLoaded, this, &AddCharacterDialog::applyLoadedCharacterToUI);

connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
connect(openTemplatesButton, &QPushButton::clicked, this, [this, openTemplatesButton] {
const auto isVisible = m_storeTemplatesButton->isVisible();
openTemplatesButton->setText(isVisible ? "Templates >>" : "Templates <<");
Expand All @@ -169,7 +168,6 @@ AddCharacterDialog::AddCharacterDialog(const bool modAddedToIni, QWidget *parent
connect(saveButton, &QPushButton::clicked, this, &AddCharacterDialog::saveButtonClicked);
connect(resetButton, &QPushButton::clicked, this, &AddCharacterDialog::resetButtonClicked);
connect(okButton, &QPushButton::clicked, this, &AddCharacterDialog::okButtonClicked);

connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);

connect(m_timer, &QTimer::timeout, this, [this] {
Expand Down

0 comments on commit 6513c4f

Please sign in to comment.