fixed removal after creating a new bouquet

This commit is contained in:
Dmitriy Yefremov
2017-12-02 20:59:25 +03:00
parent d01bc88983
commit 31949dc37c

View File

@@ -280,7 +280,7 @@ class MainAppWindow:
return
bq = response, bq_type
print()
key = "{}:{}".format(response, bq_type)
if model.iter_n_children(itr): # parent
ch_itr = model.insert(itr, 0, bq)
@@ -289,7 +289,6 @@ class MainAppWindow:
p_itr = model.iter_parent(itr)
it = model.insert(p_itr, int(model.get_path(itr)[1]) + 1, bq) if p_itr else model.append(itr, bq)
self.scroll_to(model.get_path(it), paths, view)
print(key)
self.__bouquets[key] = []
def scroll_to(self, path, paths, view):