Added a missing update to the database store of cmdsethandler. Resolves #751.

This commit is contained in:
Griatch 2015-06-01 20:02:53 +02:00
parent d23a8a94db
commit ef1e336339

View file

@ -417,12 +417,16 @@ class CmdSetHandler(object):
if any(cset.permanent for cset in delcmdsets):
# only hit database if there's need to
storage = self.obj.cmdset_storage
updated = False
for cset in delcmdsets:
if cset.permanent:
try:
storage.remove(cset.path)
updated = True
except ValueError:
pass
if updated:
self.obj.cmdset_storage = storage
for cset in delcmdsets:
# clean the in-memory stack
try: