summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-10-01 07:25:29 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-10-01 07:25:29 (GMT)
commiteedd35c220d6c8788c8ae4921135333a57feb3a0 (patch)
tree7a13bf266a6c04f900cc11386ebe9593f37a1b23
parent5bb4ce27cb8335384236970a7b17b3c4258acaca (diff)
downloadswift-contrib-eedd35c220d6c8788c8ae4921135333a57feb3a0.zip
swift-contrib-eedd35c220d6c8788c8ae4921135333a57feb3a0.tar.bz2
Set a title on subscription notification popup.
Notify-OSD behaves weird if you ask it to render a popup without a subject/header/summary. Release-Notes: Fixed the issue where subscription notifications on Linux did not show properly.
-rw-r--r--Swift/Controllers/EventNotifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/Controllers/EventNotifier.cpp b/Swift/Controllers/EventNotifier.cpp
index 645ee3c..7ecc27c 100644
--- a/Swift/Controllers/EventNotifier.cpp
+++ b/Swift/Controllers/EventNotifier.cpp
@@ -47,7 +47,7 @@ void EventNotifier::handleEventAdded(boost::shared_ptr<StanzaEvent> event) {
}
else if(boost::shared_ptr<SubscriptionRequestEvent> subscriptionEvent = boost::dynamic_pointer_cast<SubscriptionRequestEvent>(event)) {
JID jid = subscriptionEvent->getJID();
- std::string title = "";
+ std::string title = jid;
std::string message = str(format(QT_TRANSLATE_NOOP("", "%1% wants to add you to his/her contact list")) % nickResolver->jidToNick(jid));
notifier->showMessage(Notifier::SystemMessage, title, message, boost::filesystem::path(), boost::function<void()>());
}