Fix type issue in Resize Dialog

* Converted Int to String when appending to name
This commit is contained in:
Chris M 2023-05-12 07:57:26 +10:00
parent 6c91ce6a1b
commit d3b3663ef5

View file

@ -188,9 +188,9 @@ void Ui::OpenRGBZoneResizeDialog::on_AddSegmentButton_clicked()
\*---------------------------------------------------------*/
std::string new_name = "Segment ";
new_name.append(ui->SegmentsTreeWidget->topLevelItemCount() + 1);
new_name.append(std::to_string(ui->SegmentsTreeWidget->topLevelItemCount() + 1));
lineedit_name->setText(new_name);
lineedit_name->setText(new_name.c_str());
/*---------------------------------------------------------*\
| Restrict slider maximum to zone size |