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:
parent
3534c4fc0e
commit
83124b7029
@ -255,6 +255,7 @@ void WallpaperPackage::pathChanged()
|
|||||||
findBestPaper();
|
findBestPaper();
|
||||||
} else {
|
} else {
|
||||||
// dirty trick to support having a file passed in instead of a directory
|
// dirty trick to support having a file passed in instead of a directory
|
||||||
|
removeDefinition("preferred");
|
||||||
addFileDefinition("preferred", info.fileName(), i18n("Recommended wallpaper file"));
|
addFileDefinition("preferred", info.fileName(), i18n("Recommended wallpaper file"));
|
||||||
setContentsPrefixPaths(QStringList());
|
setContentsPrefixPaths(QStringList());
|
||||||
//kDebug() << "changing" << path() << "to" << info.path();
|
//kDebug() << "changing" << path() << "to" << info.path();
|
||||||
|
Loading…
Reference in New Issue
Block a user