summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStuart Morgan <smorgan@mythtv.org>2011-02-01 14:20:09 (GMT)
committer Stuart Morgan <smorgan@mythtv.org>2011-02-01 14:20:09 (GMT)
commit5aa72ebce5661e966b1c5a73a576bc1bf7c3cca1 (patch)
tree42bf1bf45e0f8330719611f50c610ac646b823f6
parent54dde8617f4f139afddaf4f26eec4ec2958f6e3b (diff)
Don't overwrite default help text if the current widget does not provide any of it's own.
-rw-r--r--mythtv/libs/libmythui/mythscreentype.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mythtv/libs/libmythui/mythscreentype.cpp b/mythtv/libs/libmythui/mythscreentype.cpp
index 52a91eb..c2e6488 100644
--- a/mythtv/libs/libmythui/mythscreentype.cpp
+++ b/mythtv/libs/libmythui/mythscreentype.cpp
@@ -121,8 +121,8 @@ bool MythScreenType::SetFocusWidget(MythUIType *widget)
m_CurrentFocusWidget = widget;
m_CurrentFocusWidget->TakeFocus();
- if (helpText)
- helpText->SetText(m_CurrentFocusWidget->GetHelpText());
+ if (!widget->GetHelpText().isEmpty())
+ helpText->SetText(widget->GetHelpText());
return true;
}