browser: properly report errors when deleting items fails

This commit is contained in:
Andrzej Rybczak
2014-04-26 17:53:59 +02:00
parent d28dcf6781
commit 8913c77786
3 changed files with 27 additions and 9 deletions

View File

@@ -74,7 +74,7 @@ struct Browser: Screen<NC::Menu<MPD::Item>>, Filterable, HasSongs, Searchable, T
void GetLocalDirectory(MPD::ItemList &, const std::string &, bool) const;
void ClearDirectory(const std::string &) const;
void ChangeBrowseMode();
bool deleteItem(const MPD::Item &);
bool deleteItem(const MPD::Item &, std::string &errmsg);
# endif // !WIN32
static bool isParentDirectory(const MPD::Item &item) {