- Update our entry_ref when the underlying file is moved.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32964 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4c74ef98f2
commit
0c19bd4a85
@ -205,11 +205,24 @@ TPeopleWindow::MessageReceived(BMessage* msg)
|
||||
|
||||
case B_ENTRY_MOVED:
|
||||
{
|
||||
// We may have renamed our entry. Update the title
|
||||
// just in case.
|
||||
// We may have renamed our entry. Obtain relevant data
|
||||
// from message.
|
||||
BString name;
|
||||
if (msg->FindString("name", &name) == B_OK)
|
||||
SetTitle(name);
|
||||
msg->FindString("name", &name);
|
||||
|
||||
int64 directory;
|
||||
msg->FindInt64("to directory", &directory);
|
||||
|
||||
int32 device;
|
||||
msg->FindInt32("device", &device);
|
||||
|
||||
// Update our ref.
|
||||
delete fRef;
|
||||
fRef = new entry_ref(device, directory, name.String());
|
||||
|
||||
|
||||
// And our window title.
|
||||
SetTitle(name);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user