summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();