Patch from Shinta, this fixes bug #2097. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25172 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
03baa14fe9
commit
2ad7bf44d0
|
@ -82,18 +82,18 @@ BControl::BControl(BMessage *archive)
|
|||
SetMessage(new BMessage(message));
|
||||
|
||||
const char *label;
|
||||
if (archive->FindString("_label", &label) != B_OK)
|
||||
if (archive->FindString("_label", &label) == B_OK)
|
||||
SetLabel(label);
|
||||
|
||||
int32 value;
|
||||
if (archive->FindInt32("_val", &value) != B_OK)
|
||||
if (archive->FindInt32("_val", &value) == B_OK)
|
||||
SetValue(value);
|
||||
|
||||
bool toggle;
|
||||
if (archive->FindBool("_disable", &toggle) != B_OK)
|
||||
if (archive->FindBool("_disable", &toggle) == B_OK)
|
||||
SetEnabled(!toggle);
|
||||
|
||||
if (archive->FindBool("be:wants_nav", &toggle) != B_OK)
|
||||
if (archive->FindBool("be:wants_nav", &toggle) == B_OK)
|
||||
fWantsNav = toggle;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue