@@ -9,6 +9,11 @@
|
||||
},
|
||||
set record(value) {
|
||||
this._record = value;
|
||||
},
|
||||
button_clicked: function(event) {
|
||||
if (Sao.common.compare(this.screen.selected_records, [this.record])) {
|
||||
Sao.View.ListGroupViewForm._super.button_clicked.call(this, event);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -23,6 +23,10 @@ class ListBoxViewForm(ViewForm):
|
||||
def record(self, value):
|
||||
self._record = value
|
||||
|
||||
def button_clicked(self, widget):
|
||||
if self.screen.selected_records == [self.record]:
|
||||
super().button_clicked(widget)
|
||||
|
||||
|
||||
class ListBoxItem(GObject.Object):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user