Changeset View
Changeset View
Standalone View
Standalone View
plugins/telephony/telephonyplugin.cpp
Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Line(s) | 101 | if (np.get<bool>(QStringLiteral("isCancel"))) { | |||
---|---|---|---|---|---|
102 | 102 | | |||
103 | //TODO: Clear the old notification | 103 | //TODO: Clear the old notification | ||
104 | return true; | 104 | return true; | ||
105 | } | 105 | } | ||
106 | 106 | | |||
107 | const QString& event = np.get<QString>(QStringLiteral("event"), QStringLiteral("unknown")); | 107 | const QString& event = np.get<QString>(QStringLiteral("event"), QStringLiteral("unknown")); | ||
108 | 108 | | |||
109 | // Handle old-style packets | 109 | // Handle old-style packets | ||
110 | if (np.type() == PACKET_TYPE_TELEPHONY) | 110 | if (np.type() == PACKET_TYPE_TELEPHONY) { | ||
111 | { | 111 | if (event == QLatin1String("sms")) { | ||
112 | if (event == QLatin1String("sms")) | | |||
113 | { | | |||
114 | return false; | 112 | return false; | ||
115 | } | 113 | } | ||
116 | KNotification* n = createNotification(np); | 114 | KNotification* n = createNotification(np); | ||
117 | if (n != nullptr) n->sendEvent(); | 115 | if (n != nullptr) n->sendEvent(); | ||
118 | return true; | 116 | return true; | ||
119 | } | 117 | } | ||
120 | 118 | | |||
121 | return true; | 119 | return true; | ||
Show All 14 Lines |