Avoid empty header in edit gp screen.

Fixes #3329
This commit is contained in:
Deve
2018-06-25 23:38:30 +02:00
parent e7d07f4537
commit ddd63771be

View File

@@ -281,7 +281,8 @@ void EditGPScreen::setModified(const bool modified)
LabelWidget* header = getWidget<LabelWidget>("title");
assert(header != NULL);
//I18N: Indicate that the grand prix is modified and not saved
header->setText(modified ? _(L"%s (+)", m_gp->getName()) : L"", true);
header->setText(modified ? _(L"%s (+)", m_gp->getName())
: m_gp->getName(), true);
enableButtons();
} // setModified