summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterbuy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloaterbuy.cpp')
-rw-r--r--indra/newview/llfloaterbuy.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/indra/newview/llfloaterbuy.cpp b/indra/newview/llfloaterbuy.cpp
index ed2cc2b7c3..9edb0afb5c 100644
--- a/indra/newview/llfloaterbuy.cpp
+++ b/indra/newview/llfloaterbuy.cpp
@@ -289,11 +289,6 @@ void LLFloaterBuy::inventoryChanged(LLViewerObject* obj,
removeVOInventoryListener();
}
-void LLFloaterBuy::close(bool app_quitting)
-{
- LLSelectMgr::getInstance()->deselectAll();
- LLFloater::close(app_quitting);
-}
// static
void LLFloaterBuy::onClickBuy(void*)
@@ -325,3 +320,10 @@ void LLFloaterBuy::onClickCancel(void*)
sInstance->close();
}
}
+
+void LLFloaterBuy::onClose(bool app_quitting)
+{
+ // drop reference to current selection so selection goes away
+ mObjectSelection = NULL;
+ LLFloater::onClose(app_quitting);
+}