~mterry/+junk/u8.2

« back to all changes in this revision

Viewing changes to plugins/Unity/Indicators/indicator.cpp

  • Committer: Michael Terry
  • Date: 2014-10-08 14:10:37 UTC
  • Revision ID: michael.terry@canonical.com-20141008141037-eeoesnuzmtwz5kmc
Move profile setting out of init()

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
{
32
32
}
33
33
 
34
 
void Indicator::init(const QString &profile, const QString& busName, const QSettings& settings)
 
34
void Indicator::init(const QString& busName, const QSettings& settings)
35
35
{
36
36
    // Save all keys we care about from the QSettings object.  It's annoying
37
37
    // that we can't just copy the object.
51
51
    properties.insert("busType", 1);
52
52
    properties.insert("busName", busName);
53
53
    properties.insert("actionsObjectPath", actionObjectPath);
54
 
 
55
 
    m_properties = properties;
56
 
    setProfile(profile); // will emit changed signals for us and set position
 
54
    setIndicatorProperties(properties);
57
55
}
58
56
 
59
57
QString Indicator::identifier() const