diff mainwindow.cpp @ 211:290a95b5ceae

* Report error if hg incoming does authentically fail (e.g. because remote repo is unavailable or unrelated) * Change target executable name from easyhg to EasyMercurial * Some (probably invisible) layout tweaks
author Chris Cannam
date Wed, 05 Jan 2011 15:05:45 +0000
parents c5fceb3fe5b4
children 4c5993d860f3
line wrap: on
line diff
--- a/mainwindow.cpp	Wed Jan 05 14:31:07 2011 +0000
+++ b/mainwindow.cpp	Wed Jan 05 15:05:45 2011 +0000
@@ -1549,10 +1549,13 @@
         settings();
         return;
     case ACT_INCOMING:
-        // returns non-zero code if the check was successful but there
-        // are no changes pending
-        if (output.trimmed() == "") showIncoming("");
-        return;
+        // returns non-zero code and no output if the check was
+        // successful but there are no changes pending
+        if (output.trimmed() == "") {
+            showIncoming("");
+            return;
+        }
+        break;
     case ACT_QUERY_HEADS:
         // fails if repo is empty; we don't care (if there's a genuine
         // problem, something else will fail too).  Pretend it