Skip to content

Commit

Permalink
fix: use correct variable for toolButton
Browse files Browse the repository at this point in the history
  • Loading branch information
smnppKDAB authored and narnaud committed Jun 26, 2024
1 parent a4e3b0e commit 49ae6cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/scriptdialogitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ void ScriptDialogItem::createProperties(QWidget *dialogWidget)
emit clicked(pushButton->objectName());
});
} else if (auto toolButton = qobject_cast<QToolButton *>(widget)) {
connect(pushButton, &QToolButton::clicked, this, [this, toolButton]() {
connect(toolButton, &QToolButton::clicked, this, [this, toolButton]() {
emit clicked(toolButton->objectName());
});
} else if (auto lineEdit = qobject_cast<QLineEdit *>(widget)) {
Expand Down

0 comments on commit 49ae6cf

Please sign in to comment.