When saving its state, BShelf was erroneously saving the BMessage
given to it when the replicant was first added. This had the net effect that any on the fly changes such as the color drops allowed by the Activity Monitor replicant were discarded. Fixed. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25113 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
32bcfcf6a9
commit
291b899af6
@ -247,13 +247,14 @@ status_t
|
||||
replicant_data::Archive(BMessage* msg)
|
||||
{
|
||||
status_t result = B_ERROR;
|
||||
if (message) {
|
||||
msg->AddMessage("message", message);
|
||||
BMessage archive;
|
||||
if (view && (view->Archive(&archive) == B_OK)) {
|
||||
msg->AddInt32("uniqueid", id);
|
||||
BPoint pos (0,0);
|
||||
if (view)
|
||||
if (view) {
|
||||
msg->AddMessage("message", &archive);
|
||||
pos = view->Frame().LeftTop();
|
||||
else if (zombie_view)
|
||||
} else if (zombie_view)
|
||||
pos = zombie_view->Frame().LeftTop();
|
||||
msg->AddPoint("position", pos);
|
||||
result = B_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user