diff options
Diffstat (limited to 'g-ed-it/commitDialog.py')
-rw-r--r-- | g-ed-it/commitDialog.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/g-ed-it/commitDialog.py b/g-ed-it/commitDialog.py index 668a5c0..a21445a 100644 --- a/g-ed-it/commitDialog.py +++ b/g-ed-it/commitDialog.py @@ -46,6 +46,7 @@ class CommitDialog (object): def run(self,window,fileURI, allFile): self.commit_dialog.set_transient_for(window) + self.current_window = window self.cwd = os.path.dirname(fileURI) if allFile: self.fileName = None @@ -56,6 +57,7 @@ class CommitDialog (object): def on_cancel_button_clicked(self, close_button): self.commit_dialog.hide() + self.current_window = None def on_commit_button_clicked(self, close_button): commit_text_buffer = self.commit_text_box.get_buffer() @@ -66,7 +68,8 @@ class CommitDialog (object): subprocess.call('git-commit -m "'+commit_text+'"',stdout=subprocess.PIPE,cwd=self.cwd, shell=True) commit_text_buffer.set_text("") self.commit_dialog.hide() - self.plugin.fast_update_ui() + self.current_window.emit("active-tab-state-changed") + self.current_window = None pass def on_commit_text_changed(self, commit_text_entry): |