Skip to content

Commit

Permalink
Fix a concatenated strings and change its context.
Browse files Browse the repository at this point in the history
No more QObject context in MythMusic, yippee!
  • Loading branch information
Nicolas Riendeau committed Jul 14, 2013
1 parent 53f3d55 commit 0e4330b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mythplugins/mythmusic/mythmusic/cdrip.cpp
Expand Up @@ -247,7 +247,7 @@ void CDRipperThread::run(void)

if (LCD *lcd = LCD::Get())
{
QString lcd_tots = QObject::tr("Importing ") + tots;
QString lcd_tots = tr("Importing %1").arg(tots);
QList<LCDTextItem> textItems;
textItems.append(LCDTextItem(1, ALIGN_CENTERED,
lcd_tots, "Generic", false));
Expand Down
3 changes: 3 additions & 0 deletions mythplugins/mythmusic/mythmusic/cdrip.h
Expand Up @@ -4,6 +4,7 @@
// qt
#include <QEvent>
#include <QVector>
#include <QCoreApplication>

// mythtv
#include <musicmetadata.h>
Expand Down Expand Up @@ -56,6 +57,8 @@ class RipStatus;

class CDRipperThread: public MThread
{
Q_DECLARE_TR_FUNCTIONS(CDRipperThread)

public:
CDRipperThread(RipStatus *parent, QString device,
QVector<RipTrack*> *tracks, int quality);
Expand Down

0 comments on commit 0e4330b

Please sign in to comment.