diff options
Diffstat (limited to 'linden/indra/newview/llassetuploadresponders.cpp')
-rw-r--r-- | linden/indra/newview/llassetuploadresponders.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/linden/indra/newview/llassetuploadresponders.cpp b/linden/indra/newview/llassetuploadresponders.cpp index aff1fb8..b9ec9a0 100644 --- a/linden/indra/newview/llassetuploadresponders.cpp +++ b/linden/indra/newview/llassetuploadresponders.cpp | |||
@@ -287,7 +287,8 @@ void LLNewAgentInventoryResponder::uploadComplete(const LLSD& content) | |||
287 | LLInventoryView* view = LLInventoryView::getActiveInventory(); | 287 | LLInventoryView* view = LLInventoryView::getActiveInventory(); |
288 | if(view) | 288 | if(view) |
289 | { | 289 | { |
290 | LLUICtrl* focus_ctrl = gFocusMgr.getKeyboardFocus(); | 290 | LLFocusableElement* focus = gFocusMgr.getKeyboardFocus(); |
291 | |||
291 | view->getPanel()->setSelection(content["new_inventory_item"].asUUID(), TAKE_FOCUS_NO); | 292 | view->getPanel()->setSelection(content["new_inventory_item"].asUUID(), TAKE_FOCUS_NO); |
292 | if((LLAssetType::AT_TEXTURE == asset_type || LLAssetType::AT_SOUND == asset_type) | 293 | if((LLAssetType::AT_TEXTURE == asset_type || LLAssetType::AT_SOUND == asset_type) |
293 | && LLFilePicker::instance().getFileCount() <= FILE_COUNT_DISPLAY_THRESHOLD) | 294 | && LLFilePicker::instance().getFileCount() <= FILE_COUNT_DISPLAY_THRESHOLD) |
@@ -296,7 +297,7 @@ void LLNewAgentInventoryResponder::uploadComplete(const LLSD& content) | |||
296 | } | 297 | } |
297 | //LLInventoryView::dumpSelectionInformation((void*)view); | 298 | //LLInventoryView::dumpSelectionInformation((void*)view); |
298 | // restore keyboard focus | 299 | // restore keyboard focus |
299 | gFocusMgr.setKeyboardFocus(focus_ctrl); | 300 | gFocusMgr.setKeyboardFocus(focus); |
300 | } | 301 | } |
301 | } | 302 | } |
302 | else | 303 | else |