Ticket #2097: Control.diff
File Control.diff, 857 bytes (added by , 17 years ago) |
---|
-
src/kits/interface/Control.cpp
82 82 SetMessage(new BMessage(message)); 83 83 84 84 const char *label; 85 if (archive->FindString("_label", &label) != B_OK)85 if (archive->FindString("_label", &label) == B_OK) 86 86 SetLabel(label); 87 87 88 88 int32 value; 89 if (archive->FindInt32("_val", &value) != B_OK)89 if (archive->FindInt32("_val", &value) == B_OK) 90 90 SetValue(value); 91 91 92 92 bool toggle; 93 if (archive->FindBool("_disable", &toggle) != B_OK)93 if (archive->FindBool("_disable", &toggle) == B_OK) 94 94 SetEnabled(!toggle); 95 95 96 if (archive->FindBool("be:wants_nav", &toggle) != B_OK)96 if (archive->FindBool("be:wants_nav", &toggle) == B_OK) 97 97 fWantsNav = toggle; 98 98 } 99 99