Skip to content

Commit

Permalink
Merge pull request #34 from matthewvogt/mer-962
Browse files Browse the repository at this point in the history
[transfer-engine] Workaround lupdate bug. Contributes to MER#962
  • Loading branch information
matthewvogt committed May 5, 2015
2 parents aa063c3 + 16e8f01 commit 3f53013
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/transferengine.cpp
Expand Up @@ -417,12 +417,16 @@ void TransferEnginePrivate::sendNotification(TransferEngineData::TransferType ty
existing = &notification;
}

//: Group name for notifications of successful transfers
//% "Transfers"
const QString transfersGroup(qtTrId("transferengine-notification_group"));
//: Group name for notifications of failed transfers
//% "Warnings"
const QString errorsGroup(qtTrId("transferengine-notification_errors_group"));

// Update the notification
existing->setCategory(category);
//% "Warnings"
existing->setAppName(category == TRANSFER_ERROR_EVENT_CATEGORY ? qtTrId("transferengine-notification_errors_group")
//% "Transfers"
: qtTrId("transferengine-notification_group"));
existing->setAppName(category == TRANSFER_ERROR_EVENT_CATEGORY ? errorsGroup : transfersGroup);
existing->setSummary(summary);
existing->setBody(body);
existing->setPreviewSummary(previewSummary);
Expand Down

0 comments on commit 3f53013

Please sign in to comment.