tiny tag editor: do not to set empty name
This commit is contained in:
@@ -120,10 +120,13 @@ void TinyTagEditor::enterPressed()
|
||||
std::string extension = filename.substr(dot);
|
||||
filename = filename.substr(0, dot);
|
||||
std::string new_name = Global::wFooter->getString(filename);
|
||||
if (!new_name.empty())
|
||||
{
|
||||
itsEdited.setNewName(new_name + extension);
|
||||
w.at(option).value().clear();
|
||||
w.at(option).value() << NC::Format::Bold << "Filename:" << NC::Format::NoBold << ' ' << (itsEdited.getNewName().empty() ? itsEdited.getName() : itsEdited.getNewName());
|
||||
}
|
||||
}
|
||||
Statusbar::unlock();
|
||||
|
||||
if (option == 22)
|
||||
|
||||
Reference in New Issue
Block a user