mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-08 14:19:32 +00:00
1066: Grouping by Camera Make/Model depends on data source selection, despite being told otherwise
This commit is contained in:
parent
09def81220
commit
aee36df5ea
@ -449,7 +449,7 @@ public class GroupManager {
|
||||
*
|
||||
* @param dataSource Data source to display or null to display all of them
|
||||
*/
|
||||
synchronized void setDataSource(DataSource dataSource) {
|
||||
public synchronized void setDataSource(DataSource dataSource) {
|
||||
dataSourceProp.set(dataSource);
|
||||
}
|
||||
|
||||
|
@ -185,6 +185,9 @@ public class Toolbar extends ToolBar {
|
||||
alert.initOwner(getScene().getWindow());
|
||||
GuiUtils.setDialogIcons(alert);
|
||||
if (alert.showAndWait().orElse(ButtonType.CANCEL) == ButtonType.OK) {
|
||||
// Set the datasource selection to 'All', before switching group
|
||||
controller.getGroupManager().setDataSource(null);
|
||||
|
||||
queryInvalidationListener.invalidated(observable);
|
||||
} else {
|
||||
Platform.runLater(() -> groupByBox.getSelectionModel().select(DrawableAttribute.PATH));
|
||||
|
Loading…
x
Reference in New Issue
Block a user