[meld] Fix instantiation of VC recent comparisons
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Fix instantiation of VC recent comparisons
- Date: Sun, 16 Dec 2012 20:03:30 +0000 (UTC)
commit f0218128ea23b21e79b8c5a4df538a28a62dbbc4
Author: Kai Willadsen <kai willadsen gmail com>
Date: Mon Dec 17 05:49:36 2012 +1000
Fix instantiation of VC recent comparisons
meld/meldwindow.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/meld/meldwindow.py b/meld/meldwindow.py
index 7672622..9c27207 100644
--- a/meld/meldwindow.py
+++ b/meld/meldwindow.py
@@ -702,7 +702,8 @@ class MeldWindow(gnomeglade.Component):
elif comparison_type == recent.TYPE_FOLDER:
tab = self.append_dirdiff(files)
elif comparison_type == recent.TYPE_VC:
- tab = self.append_vcview(files)
+ # Files should be a single-element iterable
+ tab = self.append_vcview(files[0])
else: # comparison_type == recent.TYPE_FILE:
tab = self.append_filediff(files)
app.recent_comparisons.add(tab)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]