mirror of
https://github.com/huderlem/porymap.git
synced 2026-04-19 08:07:32 -05:00
fix build for Qt5
This commit is contained in:
parent
f7a0e02f95
commit
80909734c2
|
|
@ -249,7 +249,7 @@ void RegionMapEditor::buildConfigDialog() {
|
|||
// and populate it with the current values
|
||||
// the user can edit and save the config for an existing map this way
|
||||
connect(regionMapList, &QListWidget::itemDoubleClicked, [this, &rmConfigJsonUpdate, updateMapList, regionMapList](QListWidgetItem *item) {
|
||||
int itemIndex = regionMapList->indexFromItem(item).row();
|
||||
int itemIndex = regionMapList->row(item);
|
||||
|
||||
QString err;
|
||||
poryjson::Json clickedJson = poryjson::Json::parse(item->data(Qt::UserRole).toString(), err);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user