[meld/pathlabel: 73/73] meldwindow: Don't try to set the VC location if it's missing
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld/pathlabel: 73/73] meldwindow: Don't try to set the VC location if it's missing
- Date: Sun, 15 Aug 2021 00:22:57 +0000 (UTC)
commit f182716e666410bff20f56e049522c11e9db29d2
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Aug 15 10:22:26 2021 +1000
meldwindow: Don't try to set the VC location if it's missing
meld/meldwindow.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/meld/meldwindow.py b/meld/meldwindow.py
index 37140443..c8bc22a5 100644
--- a/meld/meldwindow.py
+++ b/meld/meldwindow.py
@@ -422,7 +422,8 @@ class MeldWindow(Gtk.ApplicationWindow):
self._append_page(doc)
if isinstance(location, (list, tuple)):
location = location[0]
- doc.set_location(location.get_path())
+ if location:
+ doc.set_location(location.get_path())
if auto_compare:
doc.scheduler.add_task(doc.auto_compare)
return doc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]