QTfrontend/ui/page/pageroomslist.cpp
changeset 7003 e118ee168577
parent 6996 a0052cd32508
child 7011 f6f09a0954ea
--- 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());
 }