Fix build failures.

This commit is contained in:
Eike Hein 2013-09-02 01:28:14 +02:00
parent 1019fecdaa
commit cf48719802

View file

@ -340,7 +340,7 @@ void DeclarativeView::updateQmlSource(bool force)
const bool desktopMode = (m_mode == TabBoxConfig::DesktopTabBox);
m_currentLayout = tabBox->config().layoutName();
KService::Ptr service = desktopMode ? findDesktopSwitcher() : findWindowSwitcher();
if (service.isNull()) {
if (!service) {
return;
}
if (service->property(QStringLiteral("X-Plasma-API")).toString() != QStringLiteral("declarativeappletscript")) {