[meld] Only try to set tab labels if custom labels were given



commit fdea562489ee24914d087b76a68eef8d82514932
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Fri Dec 30 08:42:20 2011 +1000

    Only try to set tab labels if custom labels were given

 meld/meldapp.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/meldapp.py b/meld/meldapp.py
index 7f78e4a..9d554b9 100644
--- a/meld/meldapp.py
+++ b/meld/meldapp.py
@@ -186,7 +186,7 @@ class MeldApp(gobject.GObject):
             self.window.open_paths(files)
 
         tab = self.window.open_paths(args, options.auto_compare)
-        if tab:
+        if options.label and tab:
             tab.set_labels(options.label)
 
         if options.outfile and tab and isinstance(tab, filediff.FileDiff):



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