aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpaneldirbrowser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llpaneldirbrowser.cpp')
-rw-r--r--linden/indra/newview/llpaneldirbrowser.cpp48
1 files changed, 9 insertions, 39 deletions
diff --git a/linden/indra/newview/llpaneldirbrowser.cpp b/linden/indra/newview/llpaneldirbrowser.cpp
index a7a3895..f701bf4 100644
--- a/linden/indra/newview/llpaneldirbrowser.cpp
+++ b/linden/indra/newview/llpaneldirbrowser.cpp
@@ -316,14 +316,8 @@ void LLPanelDirBrowser::onCommitList(LLUICtrl* ctrl, void* data)
316 316
317 switch(type) 317 switch(type)
318 { 318 {
319 // These are both people searches. Let the panel decide if they are online or offline.
319 case ONLINE_CODE: 320 case ONLINE_CODE:
320 if (self->mFloaterDirectory && self->mFloaterDirectory->mPanelAvatarp)
321 {
322 self->mFloaterDirectory->mPanelAvatarp->setVisible(TRUE);
323 self->mFloaterDirectory->mPanelAvatarp->setAvatarID(id, name, ONLINE_STATUS_YES);
324 self->mFloaterDirectory->mPanelAvatarp->disableRate();
325 }
326 break;
327 case OFFLINE_CODE: 321 case OFFLINE_CODE:
328 if (self->mFloaterDirectory && self->mFloaterDirectory->mPanelAvatarp) 322 if (self->mFloaterDirectory && self->mFloaterDirectory->mPanelAvatarp)
329 { 323 {
@@ -409,7 +403,6 @@ void LLPanelDirBrowser::processDirPeopleReply(LLMessageSystem *msg, void**)
409 char first_name[DB_FIRST_NAME_BUF_SIZE]; 403 char first_name[DB_FIRST_NAME_BUF_SIZE];
410 char last_name[DB_LAST_NAME_BUF_SIZE]; 404 char last_name[DB_LAST_NAME_BUF_SIZE];
411 LLUUID agent_id; 405 LLUUID agent_id;
412 U8 online;
413 406
414 msg->getUUIDFast(_PREHASH_QueryData,_PREHASH_QueryID, query_id); 407 msg->getUUIDFast(_PREHASH_QueryData,_PREHASH_QueryID, query_id);
415 408
@@ -445,7 +438,7 @@ void LLPanelDirBrowser::processDirPeopleReply(LLMessageSystem *msg, void**)
445 msg->getStringFast(_PREHASH_QueryReplies,_PREHASH_FirstName, DB_FIRST_NAME_BUF_SIZE, first_name, i); 438 msg->getStringFast(_PREHASH_QueryReplies,_PREHASH_FirstName, DB_FIRST_NAME_BUF_SIZE, first_name, i);
446 msg->getStringFast(_PREHASH_QueryReplies,_PREHASH_LastName, DB_LAST_NAME_BUF_SIZE, last_name, i); 439 msg->getStringFast(_PREHASH_QueryReplies,_PREHASH_LastName, DB_LAST_NAME_BUF_SIZE, last_name, i);
447 msg->getUUIDFast( _PREHASH_QueryReplies,_PREHASH_AgentID, agent_id, i); 440 msg->getUUIDFast( _PREHASH_QueryReplies,_PREHASH_AgentID, agent_id, i);
448 msg->getU8Fast( _PREHASH_QueryReplies,_PREHASH_Online, online, i); 441 // msg->getU8Fast( _PREHASH_QueryReplies,_PREHASH_Online, online, i);
449 // unused 442 // unused
450 // msg->getStringFast(_PREHASH_QueryReplies,_PREHASH_Group, DB_GROUP_NAME_BUF_SIZE, group, i); 443 // msg->getStringFast(_PREHASH_QueryReplies,_PREHASH_Group, DB_GROUP_NAME_BUF_SIZE, group, i);
451 // msg->getS32Fast( _PREHASH_QueryReplies,_PREHASH_Reputation, reputation, i); 444 // msg->getS32Fast( _PREHASH_QueryReplies,_PREHASH_Reputation, reputation, i);
@@ -461,24 +454,14 @@ void LLPanelDirBrowser::processDirPeopleReply(LLMessageSystem *msg, void**)
461 row["id"] = agent_id; 454 row["id"] = agent_id;
462 455
463 LLUUID image_id; 456 LLUUID image_id;
464 if (online) 457 // We don't show online status in the finder anymore,
465 { 458 // so just use the 'offline' icon as the generic 'person' icon
466 image_id.set( gViewerArt.getString("icon_avatar_online.tga") ); 459 image_id.set( gViewerArt.getString("icon_avatar_offline.tga") );
467 row["columns"][0]["column"] = "icon"; 460 row["columns"][0]["column"] = "icon";
468 row["columns"][0]["type"] = "icon"; 461 row["columns"][0]["type"] = "icon";
469 row["columns"][0]["value"] = image_id; 462 row["columns"][0]["value"] = image_id;
470
471 content["type"] = ONLINE_CODE;
472 }
473 else
474 {
475 image_id.set( gViewerArt.getString("icon_avatar_offline.tga") );
476 row["columns"][0]["column"] = "icon";
477 row["columns"][0]["type"] = "icon";
478 row["columns"][0]["value"] = image_id;
479 463
480 content["type"] = OFFLINE_CODE; 464 content["type"] = OFFLINE_CODE;
481 }
482 465
483 LLString fullname = LLString(first_name) + " " + LLString(last_name); 466 LLString fullname = LLString(first_name) + " " + LLString(last_name);
484 row["columns"][1]["column"] = "name"; 467 row["columns"][1]["column"] = "name";
@@ -487,19 +470,6 @@ void LLPanelDirBrowser::processDirPeopleReply(LLMessageSystem *msg, void**)
487 470
488 content["name"] = fullname; 471 content["name"] = fullname;
489 472
490 if (online)
491 {
492 row["columns"][2]["column"] = "online";
493 row["columns"][2]["value"] = "yes";
494 row["columns"][2]["font"] = "SANSSERIFSMALL";
495 }
496 else
497 {
498 row["columns"][2]["column"] = "online";
499 row["columns"][2]["value"] = "no";
500 row["columns"][2]["font"] = "SANSSERIFSMALL";
501 }
502
503 list->addElement(row); 473 list->addElement(row);
504 474
505 LLString id_str = agent_id.getString(); 475 LLString id_str = agent_id.getString();