From b0a2ed12033f886bd6011532b8abf628ab051e42 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Mon, 11 May 2015 23:53:30 +0200 Subject: [PATCH] tag editor: fix assertion failure when directory has no subdirectories --- src/tag_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tag_editor.cpp b/src/tag_editor.cpp index 53eaab3e..62a763a2 100644 --- a/src/tag_editor.cpp +++ b/src/tag_editor.cpp @@ -337,9 +337,9 @@ void TagEditor::enterPressed() { MPD::DirectoryIterator directory = Mpd.GetDirectories(Dirs->current()->value().second), end; bool has_subdirs = directory != end; - directory.finish(); if (has_subdirs) { + directory.finish(); itsHighlightedDir = itsBrowsedDir; itsBrowsedDir = Dirs->current()->value().second; Dirs->clear();