Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

impossible to directly open a previously closed file from the side bar #563

decathorpe opened this issue Nov 1, 2018 · 1 comment


Copy link

@decathorpe decathorpe commented Nov 1, 2018

Steps to reproduce:

  1. Have a folder open in the side bar
  2. Open file X by clicking on it
  3. Close file X using the notebook tab's close button (this could be accidental)
  4. Try to open file X again (won't work, file is already selected in the sidebar)
  5. Have to open and select another file first, before file X can be opened again.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Copy link

@millyguitron millyguitron commented Jun 28, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants