]> code.citadel.org Git - citadel.git/blobdiff - webcit/roomops.c
* fix hickup with the floordiv_expanded setting; the way its now it shouldn't double...
[citadel.git] / webcit / roomops.c
index 7014040f17c02edf88e349619b798bae1fc4f82a..05a0ec4a2c00478631677f121e0f3fd08cb6adcd 100644 (file)
@@ -3190,11 +3190,9 @@ void do_rooms_view(struct folder *fold, int max_folders, int num_floors) {
 void set_floordiv_expanded(void) {
        struct wcsession *WCC = WC;
        
-       if (WCC->floordiv_expanded == NULL)
-               WCC->floordiv_expanded = NewStrBuf();
-       else
-               FlushStrBuf(WC->floordiv_expanded);
-       StrBufAppendBuf(WC->floordiv_expanded, WC->UrlFragment1, 0);
+       WCC->floordiv_expanded = NewStrBuf();
+       StrBufAppendBuf(WCC->floordiv_expanded, WCC->UrlFragment1, 0);
+       set_preference("floordiv_expanded", WCC->floordiv_expanded, 1);
 }
 
 /**