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:
Aleix Pol 2014-05-16 03:07:30 +02:00
parent aa75425637
commit 35d1dd2d65

View File

@ -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()) {