Skip to content

Commit

Permalink
fix checkbox state detection
Browse files Browse the repository at this point in the history
  • Loading branch information
lumiscosity committed Oct 4, 2024
1 parent 08e6568 commit 180535f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pickerwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ QString PickerWidget::genlog(QString orig_path, QString work_path) {
for (auto &i: ui->treeWidget->findItems("", Qt::MatchExactly, 1)) {
for (int j = 0, total = i->childCount(); total > j; ++j) {
auto item = i->child(j);
if (!item->isDisabled()) {
if (item->checkState(0)) {
if (i->text(0) == "Map" && i->text(1) == "") {
// map
// create named entry
Expand Down Expand Up @@ -367,7 +367,9 @@ QString PickerWidget::genlog(QString orig_path, QString work_path) {
}
}
}
log.append("---------------------------------------------------");
if (log.last() != "---------------------------------------------------"){
log.append("---------------------------------------------------");
}
}

// log footer
Expand Down

0 comments on commit 180535f

Please sign in to comment.