Skip to content

Commit

Permalink
Don't allow accidentally searching for old terms after deleting searches
Browse files Browse the repository at this point in the history
uhh basically if you search, get results, and then delete the search, press enter, then search again but find no results it was possible to have the results be the results from the first search instead of something that makes a little more sense
  • Loading branch information
poco0317 committed Nov 29, 2019
1 parent 48a40aa commit f1aa6c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Etterna/Actor/Menus/MusicWheel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ MusicWheel::ReloadSongList(bool searching, RString findme)
// when cancelling a search stay in the pack of your match... this should be
// more intuitive and relevant behavior -mina
if (findme == "" && lastvalidsearch != "") {
lastvalidsearch = "";
m_WheelItemDatasStatus[GAMESTATE->m_SortOrder] = INVALID;
readyWheelItemsData(GAMESTATE->m_SortOrder, false, findme);
SetOpenSection(m_sExpandedSectionName);
Expand Down

0 comments on commit f1aa6c0

Please sign in to comment.