Fixed low bug EXT-4802 - Clearing whole teleport history doesn't clear TP history from nav bar
--HG-- branch : product-enginemeow-7.2.2
parent
02a896a138
commit
19ba010137
|
|
@ -940,6 +940,9 @@ bool LLTeleportHistoryPanel::onClearTeleportHistoryDialog(const LLSD& notificati
|
|||
|
||||
if (0 == option)
|
||||
{
|
||||
// order does matter, call this first or teleport history will contain one record(current location)
|
||||
LLTeleportHistory::getInstance()->purgeItems();
|
||||
|
||||
LLTeleportHistoryStorage *th = LLTeleportHistoryStorage::getInstance();
|
||||
th->purgeItems();
|
||||
th->save();
|
||||
|
|
|
|||
|
|
@ -173,6 +173,8 @@ void LLTeleportHistory::purgeItems()
|
|||
// reset the count
|
||||
mRequestedItem = -1;
|
||||
mCurrentItem = 0;
|
||||
|
||||
onHistoryChanged();
|
||||
}
|
||||
|
||||
// static
|
||||
|
|
|
|||
Loading…
Reference in New Issue