~om26er/ubuntu-system-settings/add_ringtone_test

« back to all changes in this revision

Viewing changes to plugins/security-privacy/diagnostics/diagnostics.cpp

merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
{
37
37
    connect(&m_watcher, SIGNAL(serviceOwnerChanged(QString, QString, QString)),
38
38
            this, SLOT(createInterface(QString, QString, QString)));
39
 
    createInterface("", "", "");
 
39
    createInterface("com.ubuntu.WhoopsiePreferences", "", "");
40
40
}
41
41
 
42
 
void Diagnostics::createInterface(const QString&, const QString&, const QString& newOwner)
 
42
void Diagnostics::createInterface(const QString& name,
 
43
                                  const QString& oldOwner,
 
44
                                  const QString& newOwner)
43
45
{
44
 
    if (!m_whoopsieInterface.isValid()) {
 
46
    Q_UNUSED (oldOwner);
 
47
 
 
48
    if (!m_whoopsieInterface.connection().isConnected() ||
 
49
            name != "com.ubuntu.WhoopsiePreferences") {
45
50
        return;
46
51
    }
47
52