projects
/
moonshot-ui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Squashed merge of many commits, including (but not limited to) :
[moonshot-ui.git]
/
src
/
moonshot-custom-vbox.vala
diff --git
a/src/moonshot-custom-vbox.vala
b/src/moonshot-custom-vbox.vala
index
088f2a0
..
428c053
100644
(file)
--- a/
src/moonshot-custom-vbox.vala
+++ b/
src/moonshot-custom-vbox.vala
@@
-67,10
+67,13
@@
class CustomVBox : VBox
id_card_widget.position = next_pos++;
}
id_card_widget.position = next_pos++;
}
- public IdCardWidget? find_idcard_widget(IdCard id_card) {
+ public IdCardWidget? find_idcard_widget(IdCard card) {
+ if (card == null) {
+ return null;
+ }
foreach (var w in get_children()) {
IdCardWidget widget = (IdCardWidget) w;
foreach (var w in get_children()) {
IdCardWidget widget = (IdCardWidget) w;
- if (widget.id_card
.nai == id_card.nai
) {
+ if (widget.id_card
== card
) {
return widget;
}
}
return widget;
}
}