Skip to content

Commit

Permalink
Merge pull request #1712 from DSheirer/968-alias-editor-clear-overlap…
Browse files Browse the repository at this point in the history
…-state

#968 Playlist Alias Editor - Clear Overlap Error Warning Once Resolved
  • Loading branch information
DSheirer authored Nov 9, 2023
2 parents 09e19e1 + 8845306 commit 7302e28
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ private TableView<Alias> getAliasTableView()
idsColumn.setCellValueFactory(new IdentifierCountCell());

TableColumn<Alias, Boolean> errorsColumn = new TableColumn<>("Error");
errorsColumn.setPrefWidth(80);
errorsColumn.setPrefWidth(120);
errorsColumn.setCellValueFactory(new PropertyValueFactory<>("overlap"));
errorsColumn.setCellFactory(param ->
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,10 @@ public void save()
for(AliasID aliasID: getIdentifiersList().getItems())
{
//Create a copy of the identifier so that the alias and the editor don't have the same instance
alias.addAliasID(AliasFactory.copyOf(aliasID));
//and reset the overlap flag (if set) so that the alias list can reevaluate the overlap state.
AliasID copy = AliasFactory.copyOf(aliasID);
copy.setOverlap(false);
alias.addAliasID(copy);
}

//Remove and replace alias actions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ else if(frequency < 250_000_000)
}
catch(UsbException e)
{
throw new SourceException("R820TTunerController - exception while setting frequency [" + frequency + "] - " +
throw new SourceException("R828DTunerController - exception while setting frequency [" + frequency + "] - " +
e.getLocalizedMessage());
}
finally
Expand Down

0 comments on commit 7302e28

Please sign in to comment.