[meld] Start with a new comparison tab if nothing else is to be opened



commit 7c10694b028ba8afd1077cf630ae288c4e225395
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Dec 4 12:11:30 2011 +1000

    Start with a new comparison tab if nothing else is to be opened

 meld/meldapp.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/meld/meldapp.py b/meld/meldapp.py
index fae1475..601f28d 100644
--- a/meld/meldapp.py
+++ b/meld/meldapp.py
@@ -173,6 +173,9 @@ class MeldApp(gobject.GObject):
         if options.label and tab:
             tab.set_labels(options.label)
 
+        if not options.diff and not tab:
+            self.window.append_new_comparison()
+
         if options.outfile and tab and isinstance(tab, filediff.FileDiff):
             tab.set_merge_output_file(options.outfile)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]