diff options
author | Matthieu Gautier <mgautier@fedoraproject.org> | 2009-05-11 00:12:44 +0200 |
---|---|---|
committer | Matthieu Gautier <mgautier@fedoraproject.org> | 2009-05-11 00:12:44 +0200 |
commit | 371fe890b013185e7c07580f993a8f76f2b37c97 (patch) | |
tree | e8cd6a259902a4a10ce9f86637cd4b2bf4676acd /g-ed-it/commitDialog.py | |
parent | 70b12fe9f6918128b9cffc126ccbe8e0eb61ef35 (diff) | |
download | g-ed-it-371fe890b013185e7c07580f993a8f76f2b37c97.tar.gz g-ed-it-371fe890b013185e7c07580f993a8f76f2b37c97.tar.xz g-ed-it-371fe890b013185e7c07580f993a8f76f2b37c97.zip |
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): |