In mailbox order dialog, set selection mode after the list has been
[claws.git] / src / gtk / foldersort.c
index 4029a70f94ccd253fbd8e9a0a082248c96f30079..659303f4b1c49393f02e8fab30a2f80df04e8149 100644 (file)
@@ -266,5 +266,11 @@ void foldersort_open()
                dialog->rows++;
        }
 
+       /* We are setting the selection mode here, after the list has been
+        * populated, so that when the first row gets selected by default,
+        * the triggered set_selected() function can correctly set sensitivity
+        * on up/down buttons. */
+       gtk_cmclist_set_selection_mode(GTK_CMCLIST(folderlist), GTK_SELECTION_BROWSE);
+
        inc_lock();
 }