add check
This commit is contained in:
parent
faf95d9ed3
commit
fa733c1c8e
|
@ -151,6 +151,11 @@ bool Notification::isValid() const
|
|||
|
||||
void Notification::addActiveIn(const QObject *o)
|
||||
{
|
||||
bool contains = d->m_activeIn.contains(o);
|
||||
Q_ASSERT_X(contains,Q_FUNC_INFO,"already active");
|
||||
if(contains) {
|
||||
snoreDebug(SNORE_WARNING) << o << "already active in" << id();
|
||||
}
|
||||
d->m_activeIn.insert(o);
|
||||
SnoreCorePrivate::instance()->m_activeNotifications[id()] = *this;
|
||||
snoreDebug(SNORE_INFO) << d->m_activeIn.size() << o << qobject_cast<SnorePlugin*>(o);
|
||||
|
|
Loading…
Reference in New Issue