fix build for Qt5
This commit is contained in:
parent
f7a0e02f95
commit
80909734c2
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ void RegionMapEditor::buildConfigDialog() {
|
||||||
// and populate it with the current values
|
// and populate it with the current values
|
||||||
// the user can edit and save the config for an existing map this way
|
// the user can edit and save the config for an existing map this way
|
||||||
connect(regionMapList, &QListWidget::itemDoubleClicked, [this, &rmConfigJsonUpdate, updateMapList, regionMapList](QListWidgetItem *item) {
|
connect(regionMapList, &QListWidget::itemDoubleClicked, [this, &rmConfigJsonUpdate, updateMapList, regionMapList](QListWidgetItem *item) {
|
||||||
int itemIndex = regionMapList->indexFromItem(item).row();
|
int itemIndex = regionMapList->row(item);
|
||||||
|
|
||||||
QString err;
|
QString err;
|
||||||
poryjson::Json clickedJson = poryjson::Json::parse(item->data(Qt::UserRole).toString(), err);
|
poryjson::Json clickedJson = poryjson::Json::parse(item->data(Qt::UserRole).toString(), err);
|
||||||
|
|
Loading…
Reference in a new issue