diff options
author | Erik Kundiman <erik@megapahit.org> | 2025-03-07 16:44:21 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2025-03-07 16:44:21 +0800 |
commit | 266e96605781960799dc5388cc1ac168432ff106 (patch) | |
tree | 5f46ae7d39a8a954ea9f79dc7216cad6aca2ee6a /indra/newview/llviewermenu.cpp | |
parent | 530ff898b00d1759ab4abb32dcf9767960ce7170 (diff) | |
parent | bf949ce004c25917aabddd1cd24be812713e4602 (diff) |
Merge branch '2024.12-ForeverFPS'
Diffstat (limited to 'indra/newview/llviewermenu.cpp')
-rw-r--r-- | indra/newview/llviewermenu.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index cbc615b01a..bdae400f1d 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -5211,15 +5211,16 @@ void handle_take(bool take_separate) // MAINT-290 // Reason: Showing the confirmation dialog resets object selection, thus there is nothing to derez. // Fix: pass selection to the confirm_take, so that selection doesn't "die" after confirmation dialog is opened - params.functor.function([take_separate](const LLSD ¬ification, const LLSD &response) + LLObjectSelectionHandle obj_selection = LLSelectMgr::instance().getSelection(); + params.functor.function([take_separate, obj_selection](const LLSD ¬ification, const LLSD &response) { if (take_separate) { - confirm_take_separate(notification, response, LLSelectMgr::instance().getSelection()); + confirm_take_separate(notification, response, obj_selection); } else { - confirm_take(notification, response, LLSelectMgr::instance().getSelection()); + confirm_take(notification, response, obj_selection); } }); |