Fix bug #2728, "erroneous switching from one to three column view"
authorColin Leroy <colin@colino.net>
Fri, 30 May 2014 13:43:52 +0000 (15:43 +0200)
committerColin Leroy <colin@colino.net>
Fri, 30 May 2014 13:43:52 +0000 (15:43 +0200)
src/mainwindow.c

index 517db91..7b71254 100644 (file)
@@ -4139,6 +4139,8 @@ static void set_layout_cb(GtkAction *action, GtkRadioAction *current, gpointer d
        mainwindow_reset_paned(GTK_PANED(mainwin->vpaned));
        if (old_layout_mode == SMALL_LAYOUT && layout_mode != SMALL_LAYOUT) {
                mainwindow_reset_paned(GTK_PANED(mainwin->hpaned));
+               if (layout_mode == VERTICAL_LAYOUT)
+                       mainwindow_reset_paned(GTK_PANED(mainwin->vpaned));
        }
        if (old_layout_mode != SMALL_LAYOUT && layout_mode == SMALL_LAYOUT) {
                mainwin_paned_show_first(GTK_PANED(mainwin->hpaned));