tweak how the header customization is stored in the settings file
authorsheepluva
Wed, 02 May 2012 21:45:55 +0200
changeset 7003 e118ee168577
parent 7002 5d817ba976f7
child 7004 45d43f372107
child 7005 19cddb42326f
child 7006 6af78154dc62
tweak how the header customization is stored in the settings file
QTfrontend/ui/page/pageroomslist.cpp
--- a/QTfrontend/ui/page/pageroomslist.cpp	Wed May 02 22:51:42 2012 +0400
+++ b/QTfrontend/ui/page/pageroomslist.cpp	Wed May 02 21:45:55 2012 +0200
@@ -598,14 +598,14 @@
 
 bool PageRoomsList::restoreHeaderState()
 {
-    if (!m_gameSettings->contains("roomslist_header"))
+    if (!m_gameSettings->contains("frontend/roomslist_header"))
         return false;
-    return roomsList->horizontalHeader()->restoreState(
-        m_gameSettings->value("roomslist_header").toByteArray());
+    return roomsList->horizontalHeader()->restoreState(QByteArray::fromHex(
+        (m_gameSettings->value("frontend/roomslist_header").toByteArray())));
 }
 
 void PageRoomsList::saveHeaderState()
 {
-    m_gameSettings->setValue(
-        "roomslist_header", roomsList->horizontalHeader()->saveState());
+    m_gameSettings->setValue("frontend/roomslist_header",
+        roomsList->horizontalHeader()->saveState().toHex());
 }