Fix reset of auto-action in medianotifier

This resolves bug 2941

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/2/head
Slávek Banko 6 years ago
parent a94535c16e
commit d7f55fefe3

@ -161,8 +161,10 @@ void NotifierSettings::resetAutoAction( const TQString &mimetype )
if ( m_autoMimetypesMap.contains( mimetype ) )
{
NotifierAction *action = m_autoMimetypesMap[mimetype];
action->removeAutoMimetype( mimetype );
m_autoMimetypesMap.remove(mimetype);
if ( action ) {
action->removeAutoMimetype( mimetype );
}
m_autoMimetypesMap[mimetype] = 0L;
}
}

Loading…
Cancel
Save