From 3bf49ee7d4458c51bafdb5581c288fbd0f71d532 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sat, 9 Sep 2023 23:10:03 -0400 Subject: Support the new dump format with locked attribute. --- mapman/src/sliceview.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'mapman/src/sliceview.cpp') diff --git a/mapman/src/sliceview.cpp b/mapman/src/sliceview.cpp index 1dc385b..c0dc3a7 100644 --- a/mapman/src/sliceview.cpp +++ b/mapman/src/sliceview.cpp @@ -91,6 +91,7 @@ void slice_view::refresh() map_t map = l->get_map(id); QPixmap pm = pixmap_of_map_data(map.map_data); QString text = QString("(%1)").arg(id); + if (map.locked) text.append(" [L]"); if (map.custom_name.length()) text = QString::fromStdString(map.custom_name) + " " + text; QStandardItem *itm = new QStandardItem(QIcon(pm), text); itm->setData(QVariant(id)); -- cgit v1.2.3