diff --git a/src/screens/tag_editor.cpp b/src/screens/tag_editor.cpp index 571d9f5e..3311131c 100644 --- a/src/screens/tag_editor.cpp +++ b/src/screens/tag_editor.cpp @@ -1062,7 +1062,7 @@ void GetPatternList() while (std::getline(input, line)) if (!line.empty()) Patterns.push_back(line); - input.close(); + input.close(); } } } @@ -1164,14 +1164,14 @@ std::string ParseFilename(MPD::MutableSong &s, std::string mask, bool preview) if (*j == '_') *j = ' '; - if (!preview) - { - MPD::MutableSong::SetFunction set = IntoSetFunction(it->first); - if (set) - s.setTags(set, it->second); - } - else - result << "%" << it->first << ": " << it->second << "\n"; + if (!preview) + { + MPD::MutableSong::SetFunction set = IntoSetFunction(it->first); + if (set) + s.setTags(set, it->second); + } + else + result << "%" << it->first << ": " << it->second << "\n"; } return result.str(); }