diff --git a/src/scriptengines/qml/plasmoid/containmentinterface.cpp b/src/scriptengines/qml/plasmoid/containmentinterface.cpp index 324c503b7..56ce9fbaf 100644 --- a/src/scriptengines/qml/plasmoid/containmentinterface.cpp +++ b/src/scriptengines/qml/plasmoid/containmentinterface.cpp @@ -541,9 +541,7 @@ void ContainmentInterface::loadWallpaper() } if (!containment()->wallpaper().isEmpty()) { - if (m_wallpaperInterface) { - delete m_wallpaperInterface; - } + delete m_wallpaperInterface; m_wallpaperInterface = new WallpaperInterface(this); m_wallpaperInterface->setZ(-1000);