append a '/' if needed

svn path=/trunk/KDE/kdelibs/; revision=959336
This commit is contained in:
Aaron J. Seigo 2009-04-26 03:15:25 +00:00
parent d4c7994472
commit 3c240aa807

View File

@ -2100,6 +2100,8 @@ void AppletPrivate::init(const QString &packagePath)
QString path = packagePath;
if (path.isEmpty()) {
KStandardDirs::locate("data", "plasma/plasmoids/" + appletDescription.pluginName() + '/');
} else if (!path.endsWith('/')) {
path.append('/');
}
if (path.isEmpty()) {