reset the content root when it's a dir in case we go from single file to a directory package

svn path=/trunk/KDE/kdelibs/; revision=974597
This commit is contained in:
Aaron J. Seigo 2009-05-29 16:53:48 +00:00
parent 9511f6f429
commit d2dbbdae33

View File

@ -188,6 +188,7 @@ void WallpaperPackage::pathChanged()
QFileInfo info(path());
if (info.isDir()) {
setContentsPrefix("contents/");
findBestPaper();
} else {
// dirty trick to support having a file passed in instead of a directory