Move if check inside #ifdef

This way we're not doing a contains() and then not do anything
This commit is contained in:
Kai Uwe Broulik 2017-12-03 15:00:14 +01:00
parent ab8915bc12
commit fae6558dae

View File

@ -397,11 +397,11 @@ void Containment::addApplet(Applet *applet)
return;
}
if (d->applets.contains(applet)) {
#ifndef NDEBUG
if (d->applets.contains(applet)) {
// qCDebug(LOG_PLASMA) << "already have this applet!";
#endif
}
#endif
Containment *currentContainment = applet->containment();