Move if check inside #ifdef
This way we're not doing a contains() and then not do anything
This commit is contained in:
parent
ab8915bc12
commit
fae6558dae
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user