summaryrefslogtreecommitdiff
path: root/indra/llui/llflatlistview.cpp
diff options
context:
space:
mode:
authorYuri Chebotarev <ychebotarev@productengine.com>2009-12-07 12:04:27 +0200
committerYuri Chebotarev <ychebotarev@productengine.com>2009-12-07 12:04:27 +0200
commitc6177836ecbe95f75d79f572303a879bf37b3226 (patch)
tree3ed5664215c29590078c98a6983431c3be9bf1ae /indra/llui/llflatlistview.cpp
parent67ff38b51b59766ff7bc0af1e541b54ac067ea70 (diff)
no ticket, minor refactoring.
add return value to notifyXXX functions, may be usefull --HG-- branch : product-engine
Diffstat (limited to 'indra/llui/llflatlistview.cpp')
-rw-r--r--indra/llui/llflatlistview.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/llui/llflatlistview.cpp b/indra/llui/llflatlistview.cpp
index d4c3cfb7b6..831ac66d06 100644
--- a/indra/llui/llflatlistview.cpp
+++ b/indra/llui/llflatlistview.cpp
@@ -932,7 +932,7 @@ void LLFlatListView::onFocusLost()
}
//virtual
-void LLFlatListView::notify(const LLSD& info)
+S32 LLFlatListView::notify(const LLSD& info)
{
if(info.has("action"))
{
@@ -941,13 +941,16 @@ void LLFlatListView::notify(const LLSD& info)
{
setFocus(true);
selectFirstItem();
+ return 1;
}
else if(str_action == "select_last")
{
setFocus(true);
selectLastItem();
+ return 1;
}
}
+ return 0;
}
//EOF