Changeset View
Changeset View
Standalone View
Standalone View
src/context.cpp
Show First 20 Lines • Show All 582 Lines • ▼ Show 20 Line(s) | 578 | { | |||
---|---|---|---|---|---|
583 | const int eventRoleIndex = 1; | 583 | const int eventRoleIndex = 1; | ||
584 | StreamRestore *obj = qobject_cast<StreamRestore *>(m_streamRestores.data().value(eventRoleIndex)); | 584 | StreamRestore *obj = qobject_cast<StreamRestore *>(m_streamRestores.data().value(eventRoleIndex)); | ||
585 | 585 | | |||
586 | if (!obj) { | 586 | if (!obj) { | ||
587 | QVariantMap props; | 587 | QVariantMap props; | ||
588 | props.insert(QStringLiteral("application.icon_name"), | 588 | props.insert(QStringLiteral("application.icon_name"), | ||
589 | QStringLiteral("preferences-desktop-notification")); | 589 | QStringLiteral("preferences-desktop-notification")); | ||
590 | obj = new StreamRestore(eventRoleIndex, props, q); | 590 | obj = new StreamRestore(eventRoleIndex, props, q); | ||
591 | obj->d->update(info); | ||||
591 | m_streamRestores.insert(obj); | 592 | m_streamRestores.insert(obj); | ||
592 | } | 593 | } else { | ||
593 | | ||||
594 | obj->d->update(info); | 594 | obj->d->update(info); | ||
595 | } | 595 | } | ||
596 | } | ||||
596 | 597 | | |||
597 | void ContextPrivate::serverCallback(const pa_server_info *info) | 598 | void ContextPrivate::serverCallback(const pa_server_info *info) | ||
598 | { | 599 | { | ||
599 | m_server->d->update(info); | 600 | m_server->d->update(info); | ||
600 | } | 601 | } | ||
601 | 602 | | |||
602 | void Context::setCardProfile(quint32 index, const QString &profile) | 603 | void Context::setCardProfile(quint32 index, const QString &profile) | ||
603 | { | 604 | { | ||
▲ Show 20 Lines • Show All 225 Lines • Show Last 20 Lines |