on xenial help sign in
Fix indicator profile replacement bug
commit17539f7493cce61c0ce8f31305b1e4f5d166fc47 authorMichael Terry <michael.terry@canonical.com> dateTue 19 Jul 2016, 16:35 (10 years ago) parent1daef15
1 file changed+1−1
plugins/Unity/Indicators/indicatorsmanager.cpp+1−1
plugins/Unity/Indicators/indicatorsmanager.cpp+1−1
@@ -291,7 +291,7 @@ Indicator::Ptr IndicatorsManager::indicator(const QString& indicator_name)
291291 // The rest of the indicators respect their default profile (which is "phone", even on desktop PCs)
292292 if ((new_indicator->identifier() == QStringLiteral("indicator-session"))
293293 || (new_indicator->identifier() == QStringLiteral("indicator-power") && m_platform.isPC())) {
294− new_indicator->setProfile(m_profile.replace(QStringLiteral("phone"), QStringLiteral("desktop")));
294+ new_indicator->setProfile(QString(m_profile).replace(QStringLiteral("phone"), QStringLiteral("desktop")));
295295 } else {
296296 new_indicator->setProfile(m_profile);
297297 }