From 80909734c2d89a8275ceded4ee7e0cb2acc1e25d Mon Sep 17 00:00:00 2001 From: garak Date: Thu, 28 Apr 2022 13:33:14 -0400 Subject: [PATCH] fix build for Qt5 --- src/ui/regionmapeditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/regionmapeditor.cpp b/src/ui/regionmapeditor.cpp index 6b8cc02f..9b447a94 100644 --- a/src/ui/regionmapeditor.cpp +++ b/src/ui/regionmapeditor.cpp @@ -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);