[meld/meld-3-16] filediff: Prevent AttributeError when pane has no file
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld/meld-3-16] filediff: Prevent AttributeError when pane has no file
- Date: Wed, 26 Oct 2016 19:59:34 +0000 (UTC)
commit 4725cba34d11e82e76ed5717ed0885ad2690f67e
Author: Claude Paroz <claude 2xlibre net>
Date: Mon Oct 24 16:33:53 2016 +0200
filediff: Prevent AttributeError when pane has no file
meld/filediff.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index 1f01d37..12188af 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -1609,7 +1609,7 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
entries = self.fileentry[:self.num_panes]
if self.check_save_modified() != Gtk.ResponseType.CANCEL:
files = [e.get_file() for e in entries]
- paths = [f.get_path() for f in files]
+ paths = [f.get_path() if f is not None else f for f in files]
self.set_files(paths)
else:
idx = entries.index(entry)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]