set the names properly in line with the requested types

svn path=/trunk/KDE/kdelibs/; revision=923909
This commit is contained in:
Aaron J. Seigo 2009-02-09 18:02:03 +00:00
parent ecb67cfee5
commit 5c1c03d6b7

View File

@ -124,12 +124,16 @@ PackageStructure::Ptr PackageStructure::load(const QString &packageFormat)
if (packageFormat == "Plasma/Applet") {
structure = defaultPackageStructure(AppletComponent);
structure->d->type = "Plasma/Applet";
} else if (packageFormat == "Plasma/DataEngine") {
structure = defaultPackageStructure(DataEngineComponent);
structure->d->type = "Plasma/DataEngine";
} else if (packageFormat == "Plasma/Runner") {
structure = defaultPackageStructure(RunnerComponent);
structure->d->type = "Plasma/Runner";
} else if (packageFormat == "Plasma/Theme") {
structure = Theme::packageStructure();
structure->d->type = "Plasma/Theme";
}
if (structure) {