Commit 99c14b41 authored by Clément Stenac's avatar Clément Stenac

Search on the author field too

parent a942a4d8
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* playlist.cpp : wxWindows plugin for vlc * playlist.cpp : wxWindows plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2000-2004 VideoLAN * Copyright (C) 2000-2004 VideoLAN
* $Id: playlist.cpp,v 1.47 2004/02/28 19:31:54 zorglub Exp $ * $Id: playlist.cpp,v 1.48 2004/02/28 19:40:06 zorglub Exp $
* *
* Authors: Olivier Teulire <ipkiss@via.ecp.fr> * Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* *
...@@ -867,6 +867,14 @@ void Playlist::OnSearch( wxCommandEvent& WXUNUSED(event) ) ...@@ -867,6 +867,14 @@ void Playlist::OnSearch( wxCommandEvent& WXUNUSED(event) )
b_ok = true; b_ok = true;
break; break;
} }
listitem.SetColumn( 1 );
listview->GetItem( listitem );
if( listitem.m_text.Lower().Contains( search_string.Lower() ) )
{
i_item = i_current;
b_ok = true;
break;
}
} }
if( !b_ok ) if( !b_ok )
{ {
...@@ -882,6 +890,14 @@ void Playlist::OnSearch( wxCommandEvent& WXUNUSED(event) ) ...@@ -882,6 +890,14 @@ void Playlist::OnSearch( wxCommandEvent& WXUNUSED(event) )
b_ok = true; b_ok = true;
break; break;
} }
listitem.SetColumn( 1 );
listview->GetItem( listitem );
if( listitem.m_text.Lower().Contains( search_string.Lower() ) )
{
i_item = i_current;
b_ok = true;
break;
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment