Skip to content

Commit

Permalink
Replace concatenated string in MythControls::ResolveConflict().
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartm committed Jun 6, 2012
1 parent 7d9bb76 commit 67ef67b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions mythtv/programs/mythfrontend/mythcontrols.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -600,15 +600,18 @@ void MythControls::ResolveConflict(ActionID *conflict, int error_level,
if (!conflict)
return;

QString label = tr("This key binding conflicts with %1 in the %2 context.")
.arg(conflict->GetAction()).arg(conflict->GetContext());
QString label;

bool error = (KeyBindings::kKeyBindingError == error_level);

if (error)
label.append(tr(" Unable to bind key."));
label = tr("This key binding conflicts with %1 in the %2 context. "
"Unable to bind key.")
.arg(conflict->GetAction()).arg(conflict->GetContext());
else
label.append(tr(" Do you want to bind it anyway?"));
label = tr("This key binding conflicts with %1 in the %2 context. "
"Do you want to bind it anyway?")
.arg(conflict->GetAction()).arg(conflict->GetContext());

MythScreenStack *popupStack =
GetMythMainWindow()->GetStack("popup stack");
Expand Down

0 comments on commit 67ef67b

Please sign in to comment.