From 44fc7a8a2a60f9e553a183978baff703d24fa63d Mon Sep 17 00:00:00 2001 From: Kip Date: Tue, 10 Nov 2020 12:04:09 -0800 Subject: [PATCH] Fixes breaks with gedit 3.36.1 Closes #35. --- sourcecodebrowser/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sourcecodebrowser/plugin.py b/sourcecodebrowser/plugin.py index 19123fc..06793f3 100644 --- a/sourcecodebrowser/plugin.py +++ b/sourcecodebrowser/plugin.py @@ -398,7 +398,7 @@ def _load_active_document_symbols(self): document = self.window.get_active_document() if document: - location = document.get_location() + location = document.get_file().get_location() if location: uri = location.get_uri() self._log.debug("Loading %s...", uri)