fix bug that could cause ncmpcpp termination

steps to reproduce it:
- go to local browser
- edit tags of the last item using tiny tag editor
- move item to another directory by renaming it
- save tags

tadam! but it's no more.
This commit is contained in:
Andrzej Rybczak
2009-10-26 16:22:39 +01:00
parent dd866e9337
commit a91d02e181

View File

@@ -140,7 +140,7 @@ void TinyTagEditor::EnterPressed()
if (myOldScreen == myPlaylist) if (myOldScreen == myPlaylist)
myPlaylist->Items->Current() = s; myPlaylist->Items->Current() = s;
else if (myOldScreen == myBrowser) else if (myOldScreen == myBrowser)
*myBrowser->Main()->Current().song = s; myBrowser->GetDirectory(myBrowser->CurrentDir());
} }
} }
else else