Qt Editor: Put current selection name before EditorHelp/Description

qteditor
Sven Eberhardt 2016-07-27 22:36:14 -04:00
parent 73510d7fb1
commit b6fb7e884f
1 changed files with 3 additions and 1 deletions

View File

@ -766,7 +766,9 @@ void C4ConsoleGUIState::PropertyDlgUpdate(C4EditCursorSelection &rSelection, boo
const char *help_text = property_model->GetTargetPathHelp();
if (help_text && ::Config.Developer.ShowHelp)
{
ui.selectionHelpLabel->setText(FormatString("%s: %s", LoadResStr("IDS_CNS_DESCRIPTION"), help_text).getData());
const char *help_label = property_model->GetTargetPathName();
if (!help_label) help_label = LoadResStr("IDS_CNS_DESCRIPTION");
ui.selectionHelpLabel->setText(FormatString("%s: %s", help_label, help_text).getData());
ui.selectionHelpLabel->show();
}
else