diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-06-30 19:01:36 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-06-30 19:01:36 +0200 |
commit | d7f55fefe36a1f30618ab7dd5e6e39cdba98e541 (patch) | |
tree | 9c02068510daba16505e833b078d500c041f66a7 /tdeioslave/media | |
parent | a94535c16eb309fdd23648511e0f552fccaf7173 (diff) | |
download | tdebase-d7f55fefe36a1f30618ab7dd5e6e39cdba98e541.tar.gz tdebase-d7f55fefe36a1f30618ab7dd5e6e39cdba98e541.zip |
Fix reset of auto-action in medianotifier
This resolves bug 2941
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdeioslave/media')
-rw-r--r-- | tdeioslave/media/libmediacommon/notifiersettings.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tdeioslave/media/libmediacommon/notifiersettings.cpp b/tdeioslave/media/libmediacommon/notifiersettings.cpp index 40a09ba8e..a957c75c9 100644 --- a/tdeioslave/media/libmediacommon/notifiersettings.cpp +++ b/tdeioslave/media/libmediacommon/notifiersettings.cpp @@ -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; } } |