[gedit-plugins] There might not be a repository on inserted()
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] There might not be a repository on inserted()
- Date: Sun, 17 Aug 2014 22:44:22 +0000 (UTC)
commit 5302ea31eaea87ca8e8b1f85769b93da270b822d
Author: Garrett Regier <garrettregier gmail com>
Date: Sat Jun 28 14:59:34 2014 -0700
There might not be a repository on inserted()
plugins/git/git/windowactivatable.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/git/git/windowactivatable.py b/plugins/git/git/windowactivatable.py
index 504aea1..deca482 100644
--- a/plugins/git/git/windowactivatable.py
+++ b/plugins/git/git/windowactivatable.py
@@ -166,6 +166,9 @@ class GitWindowActivatable(GObject.Object, Gedit.WindowActivatable):
self.monitor_directory(location)
def inserted(self, bus, msg, data=None):
+ if self.repo is None:
+ return
+
location = msg.location
if not location.has_uri_scheme('file'):
return
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]