Fixed low bug EXT-4802 - Clearing whole teleport history doesn't clear TP history from nav bar

--HG--
branch : product-engine
meow-7.2.2
Dmitry Zaporozhan 2010-02-03 12:49:38 +02:00
parent 02a896a138
commit 19ba010137
2 changed files with 5 additions and 0 deletions

View File

@ -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();

View File

@ -173,6 +173,8 @@ void LLTeleportHistory::purgeItems()
// reset the count
mRequestedItem = -1;
mCurrentItem = 0;
onHistoryChanged();
}
// static