Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
#5306: Remember the last selected sound before clearing the SoundChoo…
…ser tree
  • Loading branch information
codereader committed Oct 3, 2020
1 parent f93fde1 commit 5681673
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions radiant/uimanager/SoundChooser.cpp
Expand Up @@ -363,8 +363,13 @@ int SoundChooser::ShowModal()

void SoundChooser::_onReloadSounds(wxCommandEvent& ev)
{
// Remember the last selected shader
_shaderToSelect = getSelectedShader();

_preview->setSoundShader(std::string());

// Send the command to the SoundManager
// After parsing it will fire the sounds reloaded signal => onShadersReloaded()
GlobalCommandSystem().executeCommand("ReloadSounds");

_treeStore->Clear();
Expand Down

0 comments on commit 5681673

Please sign in to comment.