[meld] Rework more run_dialog usage



commit 700438833e8f4124ee97457b6b5d57f889f26e1f
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sat Aug 17 12:56:59 2013 +1000

    Rework more run_dialog usage

 meld/vcview.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/meld/vcview.py b/meld/vcview.py
index 7f530a2..50b5318 100644
--- a/meld/vcview.py
+++ b/meld/vcview.py
@@ -648,9 +648,10 @@ class VcView(melddoc.MeldDoc, gnomeglade.Component):
                 r = next(readiter)
                 self.consolestream.output(r)
                 yield 1
-        except IOError as e:
-            misc.run_dialog("Error running command.\n'%s'\n\nThe error was:\n%s" % ( 
misc.shelljoin(command), e),
-                parent=self, messagetype=gtk.MESSAGE_ERROR)
+        except IOError as err:
+            misc.error_dialog(
+                "Error running command",
+                "While running '%s'\nError: %s" % (msg, err))
         self.consolestream.output("\n")
 
         returncode = next(readiter)


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