Fix crash when currentActivityChanged is emitted before creating view

REVIEW: 123494
wilder-5.14
Bhushan Shah 11 years ago
parent 83536ffb3a
commit 317421fd23
  1. 3
      shell/standaloneappcorona.cpp

@ -56,11 +56,12 @@ StandaloneAppCorona::StandaloneAppCorona(const QString &coronaPlugin, QObject *p
m_desktopDefaultsConfig = KConfigGroup(KSharedConfig::openConfig(package.filePath("defaults")), "Desktop");
m_view = new DesktopView(this);
connect(m_activityConsumer, SIGNAL(currentActivityChanged(QString)), this, SLOT(currentActivityChanged(QString)));
connect(m_activityConsumer, SIGNAL(activityAdded(QString)), this, SLOT(activityAdded(QString)));
connect(m_activityConsumer, SIGNAL(activityRemoved(QString)), this, SLOT(activityRemoved(QString)));
m_view = new DesktopView(this);
load();
}

Loading…
Cancel
Save