Skip to content

Commit

Permalink
Import matcher tooltip for columns update
Browse files Browse the repository at this point in the history
If there is no text to be displayed, do not show tooltip.
  • Loading branch information
Bob-IT committed Nov 3, 2020
1 parent c40ac76 commit 504ca73
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gnucash/import-export/import-main-matcher.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 504ca73

Please sign in to comment.