From 504ca731e25512a546226560f62601bc8c2b4bc7 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Tue, 3 Nov 2020 14:01:27 +0000 Subject: [PATCH] Import matcher tooltip for columns update If there is no text to be displayed, do not show tooltip. --- gnucash/import-export/import-main-matcher.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gnucash/import-export/import-main-matcher.c b/gnucash/import-export/import-main-matcher.c index 58888b0aacd..5157889c91d 100644 --- a/gnucash/import-export/import-main-matcher.c +++ b/gnucash/import-export/import-main-matcher.c @@ -1841,7 +1841,6 @@ gboolean query_tooltip_tree_view_cb (GtkWidget *widget, gint x, gint y, { GtkTreeView *tree_view = GTK_TREE_VIEW(widget); GtkTreeModel *model = gtk_tree_view_get_model(tree_view); - //GNCImportMainMatcher *info = user_data; GtkTreePath *path = NULL; GtkTreeViewColumn *column = NULL; GtkTreeIter iter; @@ -1872,7 +1871,7 @@ gboolean query_tooltip_tree_view_cb (GtkWidget *widget, gint x, gint y, } // Did we select any text? If yes, display the tooltip - if (tooltip_text) + if (tooltip_text && *tooltip_text) { show_tooltip = TRUE; gtk_tooltip_set_text (tooltip, tooltip_text);