~canonical-platform-qa/ubuntu-system-settings-online-accounts/launch_fixture

« back to all changes in this revision

Viewing changes to src/provider-request.cpp

  • Committer: CI bot
  • Author(s): Alberto Mardegan
  • Date: 2014-05-30 13:30:01 UTC
  • mfrom: (107.1.13 master)
  • Revision ID: ps-jenkins@lists.canonical.com-20140530133001-an9lfy1dc1pfkifd
Release development branch

Features landing with this branch:
- Updating the ACL when applications are enabled/disabled in System Settings
- Write profile information in the XML files installed by click hooks
- Run tests with Python 3 autopilot.
- Merge signon-ui into online-accounts-ui 

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include "globals.h"
25
25
#include "provider-request.h"
26
26
 
 
27
#include <QDesktopServices>
 
28
#include <QGuiApplication>
27
29
#include <QQmlContext>
28
30
#include <QQmlEngine>
29
31
#include <QQuickItem>
133
135
 
134
136
    if (!visible) {
135
137
        q->setResult(QVariantMap());
 
138
        /* FIXME HACK: remove when window reparenting is implemented */
 
139
        QString profile =
 
140
            m_applicationInfo.value(QStringLiteral("profile")).toString();
 
141
        if (QGuiApplication::platformName().startsWith("ubuntu") &&
 
142
            !profile.isEmpty()) {
 
143
            QDesktopServices::openUrl(
 
144
                QUrl(QString("application:///%1.desktop").arg(profile)));
 
145
        }
136
146
    }
137
147
}
138
148