Bug 799435 - Right-click issue in reconcile window

If another transaction(s) is(are) already selected, right-click will
add to the selection rather than select the new transaction and bring
up the right-click menu. Added check to see if current path is selected.
This commit is contained in:
Robert Fewell 2024-10-21 12:17:19 +01:00
parent e63210f1b4
commit 469a1278c0

View File

@ -983,7 +983,11 @@ gnc_reconcile_window_button_press_cb (GtkWidget *widget,
{
GtkTreeSelection *selection = gtk_tree_view_get_selection (GTK_TREE_VIEW(qview));
gtk_tree_selection_select_path (selection, path);
if (!gtk_tree_selection_path_is_selected (selection, path))
{
gtk_tree_selection_unselect_all (selection);
gtk_tree_selection_select_path (selection, path);
}
gtk_tree_path_free (path);
}
do_popup_menu (recnData, event);