Skip to content

Commit

Permalink
Merge branch 'po/fix-map-print-select'
Browse files Browse the repository at this point in the history
* po/fix-map-print-select:
  thumbtable: Fix map & print module views selection handling.
  Removes redundant check for (event->button == 1) as already in if statement.
  • Loading branch information
TurboGit committed Jan 6, 2025
2 parents 16adab6 + 174dd90 commit 5a2449b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/dtgtk/thumbtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -1439,8 +1439,7 @@ static gboolean _event_button_press(GtkWidget *widget,
}
}

if(event->button == 1
&& event->type == GDK_BUTTON_PRESS
if(event->type == GDK_BUTTON_PRESS
&& table->mode == DT_THUMBTABLE_MODE_FILMSTRIP)
return FALSE;
}
Expand Down Expand Up @@ -1523,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 @@ -1576,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 5a2449b

Please sign in to comment.