Skip to content

Commit

Permalink
Fixed incremental search in title-list
Browse files Browse the repository at this point in the history
  • Loading branch information
mail@gausi.de authored and mail@gausi.de committed Nov 7, 2022
1 parent 311ab26 commit 9d28ba3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/NempMainUnit.pas
Original file line number Diff line number Diff line change
Expand Up @@ -5127,7 +5127,7 @@ procedure TNemp_MainForm.VSTIncrementalSearch(Sender: TBaseVirtualTree;

aAudioFile := Sender.GetNodeData<TAudioFile>(Node);

case VST.Header.Columns[VST.FocusedColumn].Tag of
case VST.FocusedColumn of
colIdx_ARTIST: aString := aAudioFile.Artist;
colIdx_ALBUMARTIST: aString := aAudioFile.AlbumArtist;
colIdx_COMPOSER: aString := aAudioFile.Composer;
Expand Down Expand Up @@ -5210,9 +5210,9 @@ procedure TNemp_MainForm.VSTKeyDown(Sender: TObject; var Key: Word;
if not Assigned(VST.FocusedNode) then Exit;
// nächstes Vorkommen des Prefixes suchen, dazu: beim nächsten Knoten beginnen
if VST.GetNext(VST.FocusedNode) <> NIL then
ScrollNode := GetNodeWithPrefix(VST, VST.GetNext(VST.FocusedNode), VST.Header.Columns[VST.FocusedColumn].Tag, OldSelectionPrefix,erfolg)
ScrollNode := GetNodeWithPrefix(VST, VST.GetNext(VST.FocusedNode), VST.FocusedColumn, OldSelectionPrefix,erfolg)
else
ScrollNode := GetNodeWithPrefix(VST, VST.GetFirst, VST.Header.Columns[VST.FocusedColumn].Tag, OldSelectionPrefix,erfolg);
ScrollNode := GetNodeWithPrefix(VST, VST.GetFirst, VST.FocusedColumn, OldSelectionPrefix,erfolg);
if erfolg then
begin
// den alten deselektieren, und zum neuen hinscrollen, Focus setzen und selektieren
Expand Down
Binary file modified src/nemp.res
Binary file not shown.

0 comments on commit 9d28ba3

Please sign in to comment.