Remove previous "preferred" file definition when path changes with single image paths.

BUG:259373

svn path=/trunk/KDE/kdelibs/; revision=1207123
This commit is contained in:
Jeremy Paul Whiting 2010-12-17 03:02:20 +00:00
parent 3534c4fc0e
commit 83124b7029

View File

@ -255,6 +255,7 @@ void WallpaperPackage::pathChanged()
findBestPaper();
} else {
// dirty trick to support having a file passed in instead of a directory
removeDefinition("preferred");
addFileDefinition("preferred", info.fileName(), i18n("Recommended wallpaper file"));
setContentsPrefixPaths(QStringList());
//kDebug() << "changing" << path() << "to" << info.path();