[Bug] Server entries in sidebar cannot be edited or deleted #11

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

Bug: No way to edit or delete servers from the sidebar - double-click only connects.

Fix: Added right-click context menu to sidebar server rows in ssh_client.cpp:

gboolean on_server_row_button(GtkWidget*, GdkEventButton* event, gpointer d) {
    // ...
    GtkWidget* menu = gtk_menu_new();
    // Connect / Edit / Delete items
    gtk_menu_popup_at_pointer(GTK_MENU(menu), (GdkEvent*)event);
}
  • Connect: Same as double-click, uses saved password or shows password dialog
  • Edit: Opens server dialog pre-filled with existing config
  • Delete: Removes server from config and updates sidebar

Status: Fixed in commit 6e719c3

**Bug:** No way to edit or delete servers from the sidebar - double-click only connects. **Fix:** Added right-click context menu to sidebar server rows in `ssh_client.cpp`: ```cpp gboolean on_server_row_button(GtkWidget*, GdkEventButton* event, gpointer d) { // ... GtkWidget* menu = gtk_menu_new(); // Connect / Edit / Delete items gtk_menu_popup_at_pointer(GTK_MENU(menu), (GdkEvent*)event); } ``` - **Connect**: Same as double-click, uses saved password or shows password dialog - **Edit**: Opens server dialog pre-filled with existing config - **Delete**: Removes server from config and updates sidebar **Status:** Fixed in commit 6e719c3
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#11