write in the qmlobj rootcontext, not global

use a private rootcontext for each wallpaper, or they would
share config
This commit is contained in:
Marco Martin 2015-06-11 18:13:30 -07:00
parent 34935428e8
commit 839dc2c3df

View File

@ -150,7 +150,7 @@ void WallpaperInterface::syncWallpaperPackage()
}
m_qmlObject->setSource(QUrl::fromLocalFile(m_pkg.filePath("mainscript")));
m_qmlObject->engine()->rootContext()->setContextProperty("wallpaper", this);
m_qmlObject->rootContext()->setContextProperty("wallpaper", this);
//initialize with our size to avoid as much resize events as possible
QVariantHash props;