[gnome-sound-recorder/bilelmoussaoui/misc: 3/4] list: don't active row if it's on editMode
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder/bilelmoussaoui/misc: 3/4] list: don't active row if it's on editMode
- Date: Sun, 9 Aug 2020 00:06:32 +0000 (UTC)
commit 668a5a7785a97bc12e621432352dcb5e255fb15e
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date: Sun Aug 9 02:03:27 2020 +0200
list: don't active row if it's on editMode
src/recordingsListBox.js | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/recordingsListBox.js b/src/recordingsListBox.js
index 46597dcf..99db6ba2 100644
--- a/src/recordingsListBox.js
+++ b/src/recordingsListBox.js
@@ -86,6 +86,9 @@ var RecordingsListBox = new GObject.registerClass(class RecordingsListBox extend
}
vfunc_row_activated(row) {
+ if (row.editMode && row.expanded || (this.activeRow && this.activeRow.editMode &&
this.activeRow.expanded)) {
+ return;
+ }
if (this.activeRow && this.activeRow !== row) {
this.activeRow.expanded = false;
this.isolateAt(this.activeRow.get_index(), false);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]