summaryrefslogtreecommitdiff
path: root/indra/newview/llfolderview.cpp
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2012-02-17 14:42:12 -0800
committerMerov Linden <merov@lindenlab.com>2012-02-17 14:42:12 -0800
commitbb6ace0672fa5e1c47c534ba74396ef04daa408b (patch)
tree701f16864159f3777c29f27049b33066da2e8e3d /indra/newview/llfolderview.cpp
parent6363145f4556f3213f943637866445fae407593a (diff)
EXP-1902, EXP-1903 : Move items cut to the trash when clipboard reset.
Diffstat (limited to 'indra/newview/llfolderview.cpp')
-rw-r--r--indra/newview/llfolderview.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/indra/newview/llfolderview.cpp b/indra/newview/llfolderview.cpp
index 0abfa9db8e..52cc70aee7 100644
--- a/indra/newview/llfolderview.cpp
+++ b/indra/newview/llfolderview.cpp
@@ -1014,6 +1014,7 @@ bool isDescendantOfASelectedItem(LLFolderViewItem* item, const std::vector<LLFol
return false;
}
+// static
void LLFolderView::removeCutItems()
{
// There's no item in "cut" mode on the clipboard -> exit
@@ -2139,10 +2140,6 @@ bool LLFolderView::doToSelected(LLInventoryModel* model, const LLSD& userdata)
}
if (("copy" == action) || ("cut" == action))
{
- // If there are things on the clipboard that have not been pasted but
- // already disappeared from view, we need to move them to the trash
- removeCutItems();
-
// Clear the clipboard before we start adding things on it
LLClipboard::getInstance()->reset();
}