[Bug] Server list disappears after edit #12

Closed
opened 2026-09-07 15:50:25 +00:00 by x3 · 0 comments
Owner

Bug: After editing a server via right-click > Edit, the server list in the sidebar becomes empty. Servers reappear after restarting the application.

Root cause: refresh_server_list_widget() creates new row widgets via gtk_list_box_insert() but never calls gtk_widget_show_all() on the listbox. Newly inserted widgets are invisible.

Fix: Added gtk_widget_show_all(listbox) at the end of refresh_server_list_widget() in ssh_client.cpp:

static void refresh_server_list_widget(GtkWidget* listbox, ...) {
    clear_container(listbox);
    for (...) {
        // ... create widgets ...
        gtk_list_box_insert(GTK_LIST_BOX(listbox), row_box, -1);
    }
    gtk_widget_show_all(listbox);  // <-- added
}

Status: Fixed in commit fe7050c

**Bug:** After editing a server via right-click > Edit, the server list in the sidebar becomes empty. Servers reappear after restarting the application. **Root cause:** `refresh_server_list_widget()` creates new row widgets via `gtk_list_box_insert()` but never calls `gtk_widget_show_all()` on the listbox. Newly inserted widgets are invisible. **Fix:** Added `gtk_widget_show_all(listbox)` at the end of `refresh_server_list_widget()` in `ssh_client.cpp`: ```cpp static void refresh_server_list_widget(GtkWidget* listbox, ...) { clear_container(listbox); for (...) { // ... create widgets ... gtk_list_box_insert(GTK_LIST_BOX(listbox), row_box, -1); } gtk_widget_show_all(listbox); // <-- added } ``` **Status:** Fixed in commit fe7050c
x3 closed this issue 2026-09-07 16:58:14 +00:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: x3/x3-ssh#12