Don't try to delete null objects
Fixes a warning in Qt and makes sense of what the code it's actually doing. At least it was not crashing!
This commit is contained in:
parent
aa75425637
commit
35d1dd2d65
@ -133,8 +133,8 @@ void WallpaperInterface::syncWallpaperPackage()
|
||||
}
|
||||
m_pkg.setPath(m_wallpaperPlugin);
|
||||
|
||||
m_configLoader->deleteLater();
|
||||
m_configuration->deleteLater();
|
||||
if (m_configLoader) m_configLoader->deleteLater();
|
||||
if (m_configuration) m_configuration->deleteLater();
|
||||
m_configLoader = 0;
|
||||
m_configuration = 0;
|
||||
if (configScheme()) {
|
||||
|
Loading…
Reference in New Issue
Block a user