Commit ad298691 authored by Bruno Guillaume's avatar Bruno Guillaume

remove treeview content before reloading

parent 5f99a80b
......@@ -163,6 +163,9 @@ class Dep2pict(QMainWindow):
global sentences
if conll_file:
sentences = conll.load_conll(conll_file)
# Remove the current rows in self.model
self.model.removeRows(0,self.model.rowCount ())
for s in reversed(sentences):
self.add(self.model, conll.get_sentid (s))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment