Commit eec29cfe authored by Konrad Materka's avatar Konrad Materka
Browse files

Fix: Reload list of wallpaper types on install

parent 42e2078c
...@@ -127,10 +127,11 @@ PlasmaQuick::ConfigModel *ContainmentConfigView::wallpaperConfigModel() ...@@ -127,10 +127,11 @@ PlasmaQuick::ConfigModel *ContainmentConfigView::wallpaperConfigModel()
if (!m_wallpaperConfigModel) { if (!m_wallpaperConfigModel) {
m_wallpaperConfigModel = new WallpaperConfigModel(this); m_wallpaperConfigModel = new WallpaperConfigModel(this);
QDBusConnection::sessionBus().connect(QString(), QStringLiteral("/KPackage/Plasma/Wallpaper"), QStringLiteral("org.kde.plasma.kpackage"), QStringLiteral("packageInstalled"), QDBusConnection::sessionBus().connect(QString(), QStringLiteral("/KPackage/Plasma/Wallpaper"), QStringLiteral("org.kde.plasma.kpackage"), QStringLiteral("packageInstalled"),
m_wallpaperConfigModel, SLOT(repopulate())) ; m_wallpaperConfigModel, SLOT(repopulate()));
QDBusConnection::sessionBus().connect(QString(), QStringLiteral("/KPackage/Plasma/Wallpaper"), QStringLiteral("org.kde.plasma.kpackage"), QStringLiteral("packageUpdated"),
m_wallpaperConfigModel, SLOT(repopulate()));
QDBusConnection::sessionBus().connect(QString(), QStringLiteral("/KPackage/Plasma/Wallpaper"), QStringLiteral("org.kde.plasma.kpackage"), QStringLiteral("packageUninstalled"), QDBusConnection::sessionBus().connect(QString(), QStringLiteral("/KPackage/Plasma/Wallpaper"), QStringLiteral("org.kde.plasma.kpackage"), QStringLiteral("packageUninstalled"),
m_wallpaperConfigModel, SLOT(repopulate())); m_wallpaperConfigModel, SLOT(repopulate()));
} }
return m_wallpaperConfigModel; return m_wallpaperConfigModel;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment