X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=NewBranch.vala;h=3ef225a98ad9e591234f2a42df2c40cf262df10d;hp=5173aa3b062ea12b37ead73873692032ad44854e;hb=ec124418d1155a2a952f2ca6db1b01e5ab0e1009;hpb=90a8811292c4a2d78b55edf043d0c2cd844c0608 diff --git a/NewBranch.vala b/NewBranch.vala index 5173aa3b..3ef225a9 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -84,13 +84,13 @@ public class NewBranch : Object success = this.repo.createBranchNamed(bn); } } - - GitMonitor.gitmonitor.restoreQueue( this.queue ); - GitMonitor.gitmonitor.runQueue(); - GitMonitor.gitmonitor.start(); - this.running = false; - - + if (success) { + GitMonitor.gitmonitor.restoreQueue( this.queue ); + GitMonitor.gitmonitor.runQueue(); + GitMonitor.gitmonitor.start(); + } + this.running = false; + _this.el.hide();