code
code copied to clipboard
impossible to directly open a previously closed file from the side bar
Steps to reproduce:
- Have a folder open in the side bar
- Open file X by clicking on it
- Close file X using the notebook tab's close button (this could be accidental)
- Try to open file X again (won't work, file is already selected in the sidebar)
- Have to open and select another file first, before file X can be opened again.
After some investigating (and I could be completely off the deep end with this), Granite.Widgets.SourceList has a Tree class that has a method called set_selected() which then calls Gtk.TreeSelection's unselect_all().
It would be great to have a method to call unselect_all() on the tree selection from the FileView class. That way Document could call this method in its do_close().
Thoughts, questions or concerns?
This seems to be fixed in the currentmaster branch.