From 469a1278c0c7e687dfa163adb2bbbfca0bbe7ce3 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Mon, 21 Oct 2024 12:17:19 +0100 Subject: [PATCH] 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. --- gnucash/gnome/window-reconcile.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gnucash/gnome/window-reconcile.cpp b/gnucash/gnome/window-reconcile.cpp index 336123a84e..802914184c 100644 --- a/gnucash/gnome/window-reconcile.cpp +++ b/gnucash/gnome/window-reconcile.cpp @@ -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);