summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2024-02-23 20:02:48 +0100
committerFedja Beader <fedja@protonmail.ch>2024-08-18 20:01:57 +0000
commit6e894c33180321f90f920acf54522cd7e6d3954a (patch)
tree8bf53cf9e48b5dd840c482be99465632cb6f252a
parent7493e155a92517c74d924e812ce74f0b6433e68d (diff)
downloadmanaplus-do-not-unequip-first.tar.gz
manaplus-do-not-unequip-first.tar.bz2
manaplus-do-not-unequip-first.tar.xz
manaplus-do-not-unequip-first.zip
Switch config compaction logic for outfit 'unequip first' to new defaultdo-not-unequip-first
-rw-r--r--src/gui/windows/outfitwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windows/outfitwindow.cpp b/src/gui/windows/outfitwindow.cpp
index 7b6dfd7e7..633ae0bdd 100644
--- a/src/gui/windows/outfitwindow.cpp
+++ b/src/gui/windows/outfitwindow.cpp
@@ -223,12 +223,12 @@ void OutfitWindow::save() const
if (mItemsUnequip[o])
{
- serverConfig.deleteKey("OutfitUnequip" + toString(o));
+ serverConfig.setValue("OutfitUnequip" + toString(o),
+ mItemsUnequip[o]);
}
else
{
- serverConfig.setValue("OutfitUnequip" + toString(o),
- mItemsUnequip[o]);
+ serverConfig.deleteKey("OutfitUnequip" + toString(o));
}
outfitStr.clear();
outfitColorsStr.clear();