[gitg] Do not add background dummy in selection
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Do not add background dummy in selection
- Date: Thu, 2 Jan 2014 12:41:38 +0000 (UTC)
commit 1c36a1eff648ab92a7d981b13ebb0aeed58b07e0
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Wed Jan 1 18:32:55 2014 +0100
Do not add background dummy in selection
libgitg/resources/diff-view.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libgitg/resources/diff-view.js b/libgitg/resources/diff-view.js
index 532fd3b..191a2a6 100644
--- a/libgitg/resources/diff-view.js
+++ b/libgitg/resources/diff-view.js
@@ -240,7 +240,10 @@ function get_selection()
for (var i = 0; i < files.length; i++)
{
- ret.push(prepare_patchset(files[i]));
+ if (!has_class(files[i], 'background'))
+ {
+ ret.push(prepare_patchset(files[i]));
+ }
}
return ret;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]