fixed enumeration

This commit is contained in:
Andreas Preikschat 2011-02-20 18:52:22 +01:00
parent 54f42cb52b
commit 72dd290d6b

View File

@ -254,9 +254,9 @@ class SongMediaItem(MediaManagerItem):
""" """
if self.searchAsYouType: if self.searchAsYouType:
search_length = 1 search_length = 1
if self.searchTextEdit.currentSearchType() == 1: if self.searchTextEdit.currentSearchType() == SongSearch.Entire:
search_length = 3 search_length = 3
elif self.searchTextEdit.currentSearchType() == 3: elif self.searchTextEdit.currentSearchType() == SongSearch.Lyrics:
search_length = 7 search_length = 7
if len(text) > search_length: if len(text) > search_length:
self.onSearchTextButtonClick() self.onSearchTextButtonClick()