Navigation Menu

Skip to content

Commit

Permalink
Remove redundant QObject:: prefix from some tr()
Browse files Browse the repository at this point in the history
The class in which these tr() are called already inherit from QObject
so it can be called directly without using the QObject:: prefix.

This has the effect of changing the translation context to a more
meaningful one...
  • Loading branch information
Nicolas Riendeau committed Jul 14, 2013
1 parent 8f08899 commit cd7942a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythui/myththemedmenu.cpp
Expand Up @@ -579,7 +579,7 @@ bool MythThemedMenu::parseMenu(const QString &menuname)
"menu file %1").arg(menuname)); "menu file %1").arg(menuname));


if (menuname != "mainmenu.xml") if (menuname != "mainmenu.xml")
ShowOkPopup(QObject::tr("MythTV could not locate the menu file %1") ShowOkPopup(tr("MythTV could not locate the menu file %1")
.arg(menuname)); .arg(menuname));
return false; return false;
} }
Expand All @@ -596,7 +596,7 @@ bool MythThemedMenu::parseMenu(const QString &menuname)
f.close(); f.close();


if (menuname != "mainmenu.xml") if (menuname != "mainmenu.xml")
ShowOkPopup(QObject::tr("The menu file %1 is incomplete.") ShowOkPopup(tr("The menu file %1 is incomplete.")
.arg(menuname)); .arg(menuname));
return false; return false;
} }
Expand Down

0 comments on commit cd7942a

Please sign in to comment.