[gitg/wip/techlivezh/fix-720726: 4/5] Document why we call 'update_diff()' here
- From: Techlive Zheng <techlivezh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/wip/techlivezh/fix-720726: 4/5] Document why we call 'update_diff()' here
- Date: Fri, 20 Dec 2013 05:38:57 +0000 (UTC)
commit d6a8da996bf6819aa21e9ddc8a3f49cd148b8658
Author: Techlive Zheng <techlivezheng gmail com>
Date: Tue Dec 10 18:09:32 2013 +0800
Document why we call 'update_diff()' here
https://bugzilla.gnome.org/show_bug.cgi?id=720726
libgitg/gitg-diff-view.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgitg/gitg-diff-view.vala b/libgitg/gitg-diff-view.vala
index e5f4502..d01241c 100644
--- a/libgitg/gitg-diff-view.vala
+++ b/libgitg/gitg-diff-view.vala
@@ -293,6 +293,8 @@ namespace Gitg
return;
}
+ // If both `d_diff` and `d_commit` are null, clear
+ // the diff content
if (d_diff == null && d_commit == null)
{
run_javascript.begin("update_diff();", d_cancellable, (obj, res) => {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]