diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-04-22 20:10:10 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-04-22 20:10:22 +0300 |
commit | a391cf9cbc0a53463db6d628c86a3477e7d8a8b8 (patch) | |
tree | 130d9f25ea95b8f9946b9ad2662bc5b3d3fa92a6 /indra/newview/llpanelteleporthistory.cpp | |
parent | 6da0a6873b122b95b203633d3d5dda2b54c6fc43 (diff) |
SL-14842 Clear history should be it's own button
Diffstat (limited to 'indra/newview/llpanelteleporthistory.cpp')
-rw-r--r-- | indra/newview/llpanelteleporthistory.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/indra/newview/llpanelteleporthistory.cpp b/indra/newview/llpanelteleporthistory.cpp index 48614e1e47..7a3d3525ac 100644 --- a/indra/newview/llpanelteleporthistory.cpp +++ b/indra/newview/llpanelteleporthistory.cpp @@ -534,6 +534,12 @@ void LLTeleportHistoryPanel::onTeleport() confirmTeleport(itemp->getIndex()); } +// virtual +void LLTeleportHistoryPanel::onRemoveSelected() +{ + LLNotificationsUtil::add("ConfirmClearTeleportHistory", LLSD(), LLSD(), boost::bind(&LLTeleportHistoryPanel::onClearTeleportHistoryDialog, this, _1, _2)); +} + /* // virtual void LLTeleportHistoryPanel::onCopySLURL() @@ -1032,10 +1038,6 @@ void LLTeleportHistoryPanel::onGearMenuAction(const LLSD& userdata) mLastSelectedFlatlList->resetSelection(); } } - else if ("clear_history" == command_name) - { - LLNotificationsUtil::add("ConfirmClearTeleportHistory", LLSD(), LLSD(), boost::bind(&LLTeleportHistoryPanel::onClearTeleportHistoryDialog, this, _1, _2)); - } S32 index = -1; if (mLastSelectedFlatlList) |