don't load toolbox on types not desktop or panel

exclude customdesktop and custompanel
This commit is contained in:
Marco Martin 2016-01-19 23:44:24 +01:00
parent 9e1226f26f
commit fd9b5bd006

View File

@ -109,6 +109,7 @@ void ContainmentInterface::init()
defaults = KConfigGroup(KSharedConfig::openConfig(m_containment->corona()->package().filePath("defaults")), "Panel"); defaults = KConfigGroup(KSharedConfig::openConfig(m_containment->corona()->package().filePath("defaults")), "Panel");
} }
if (defaults.isValid()) {
KPackage::Package pkg = KPackage::PackageLoader::self()->loadPackage("KPackage/GenericQML"); KPackage::Package pkg = KPackage::PackageLoader::self()->loadPackage("KPackage/GenericQML");
pkg.setDefaultPackageRoot("plasma/packages"); pkg.setDefaultPackageRoot("plasma/packages");
@ -139,6 +140,7 @@ void ContainmentInterface::init()
} else { } else {
qWarning() << "Toolbox not loading, toolbox package is either invalid or disabled."; qWarning() << "Toolbox not loading, toolbox package is either invalid or disabled.";
} }
}
} }