Project

General

Profile

Feature #1128 » 0087-Ruledit-Allow-enabler-addition-and-removal-on-non-ex.patch

main - Marko Lindqvist, 11/16/2024 06:50 AM

View differences:

tools/ruledit/tab_enablers.cpp
add_button = new QPushButton(QString::fromUtf8(R__("Add Enabler")), this);
connect(add_button, SIGNAL(pressed()), this, SLOT(add_now()));
enabler_layout->addWidget(add_button, row, 0);
show_experimental(add_button);
delete_button = new QPushButton(QString::fromUtf8(R__("Remove this Enabler")), this);
connect(delete_button, SIGNAL(pressed()), this, SLOT(delete_now()));
delete_button->setEnabled(false);
enabler_layout->addWidget(delete_button, row++, 1);
show_experimental(delete_button);
repair_button = new QPushButton(this);
connect(repair_button, SIGNAL(pressed()), this, SLOT(repair_now()));
......
enabler->rulesave.comment = nullptr;
}
enabler->rulesave.ruledit_disabled = false;
return true;
}
......
action_enablers_iterate(enabler) {
if (enabler->rulesave.ruledit_disabled) {
if (initialize_new_enabler(enabler)) {
enabler->rulesave.ruledit_disabled = false;
update_enabler_info(enabler);
refresh();
}
(1-1/2)