From a1b57a45af42dfe72f935ec2b174137c83a8d146 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Thu, 16 May 2013 18:14:44 +0200 Subject: [PATCH] tiny tag editor: fix file edition in local browser --- src/tiny_tag_editor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tiny_tag_editor.cpp b/src/tiny_tag_editor.cpp index 155272ba..74031ed8 100644 --- a/src/tiny_tag_editor.cpp +++ b/src/tiny_tag_editor.cpp @@ -169,7 +169,10 @@ void TinyTagEditor::mouseButtonPressed(MEVENT me) void TinyTagEditor::SetEdited(const MPD::Song &s) { - itsEdited = s; + if (auto ms = dynamic_cast(&s)) + itsEdited = *ms; + else + itsEdited = s; } bool TinyTagEditor::getTags()