- When the associated people file is deleted, close the window instead of

reseting it.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32928 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Bruno G. Albuquerque
2009-09-03 22:59:57 +00:00
parent edb6254810
commit ccc2cf7f03
+3 -6
View File
@@ -195,15 +195,12 @@ TPeopleWindow::MessageReceived(BMessage* msg)
if (msg->FindInt32("opcode", &opcode) == B_OK) { if (msg->FindInt32("opcode", &opcode) == B_OK) {
switch (opcode) { switch (opcode) {
case B_ENTRY_REMOVED: case B_ENTRY_REMOVED:
// We lost our file. Reset everything. We don't need // We lost our file. Close the window by quiting its
// to explicitly disable the node monitor. // looper.
delete fRef; delete fRef;
fRef = NULL; fRef = NULL;
for (int32 i = 0; gFields[i].attribute; i++) PostMessage(B_QUIT_REQUESTED);
fView->SetField(i, "", true);
SetTitle("New Person");
break; break;
case B_ENTRY_MOVED: case B_ENTRY_MOVED: