Skip to content

Commit

Permalink
thumbtable: Fix map & print module views selection handling.
Browse files Browse the repository at this point in the history
For the print view a single click must change the current printed image.
For the map view a single click must center the picture if present on the map.

Fixes #18143
  • Loading branch information
TurboGit committed Jan 6, 2025
1 parent 20c3ee2 commit 174dd90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dtgtk/thumbtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,8 @@ static gboolean _event_button_release(GtkWidget *widget,

if(cv != DT_VIEW_DARKROOM
&& cv != DT_VIEW_LIGHTTABLE
&& cv != DT_VIEW_MAP)
&& cv != DT_VIEW_MAP
&& cv != DT_VIEW_PRINT)
return FALSE;

dt_set_backthumb_time(0.0);
Expand Down Expand Up @@ -1575,6 +1576,7 @@ static gboolean _event_button_release(GtkWidget *widget,
else
{
dt_selection_select_single(darktable.selection, id);
DT_CONTROL_SIGNAL_RAISE(DT_SIGNAL_VIEWMANAGER_THUMBTABLE_ACTIVATE, id);
}
}
}
Expand Down

0 comments on commit 174dd90

Please sign in to comment.