diff options
| author | Richard Linden <none@none> | 2012-08-03 15:23:08 -0700 |
|---|---|---|
| committer | Richard Linden <none@none> | 2012-08-03 15:23:08 -0700 |
| commit | af8d113557105075af0e010c560ba9846d812aa0 (patch) | |
| tree | eb7c9a3ff37965a97a9b1f2b970d31435c192df6 /indra/llui/llfolderviewmodel.cpp | |
| parent | c43eedd43471fcbbbda91cc5f30674ba2485659a (diff) | |
CHUI-271 FIX Items that are cut and then removed from the clipboard without paste do not show in Trash until relog
Diffstat (limited to 'indra/llui/llfolderviewmodel.cpp')
| -rw-r--r-- | indra/llui/llfolderviewmodel.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/indra/llui/llfolderviewmodel.cpp b/indra/llui/llfolderviewmodel.cpp index 6aa4a63edc..3593804554 100644 --- a/indra/llui/llfolderviewmodel.cpp +++ b/indra/llui/llfolderviewmodel.cpp @@ -51,3 +51,18 @@ void LLFolderViewModelCommon::filter() getFilter().setFilterCount(llclamp(LLUI::sSettingGroups["config"]->getS32("FilterItemsPerFrame"), 1, 5000)); mFolderView->getViewModelItem()->filter(getFilter()); } + +bool LLFolderViewModelItemCommon::hasFilterStringMatch() +{ + return mStringMatchOffsetFilter != std::string::npos; +} + +std::string::size_type LLFolderViewModelItemCommon::getFilterStringOffset() +{ + return mStringMatchOffsetFilter; +} + +std::string::size_type LLFolderViewModelItemCommon::getFilterStringSize() +{ + return mRootViewModel.getFilter().getFilterStringSize(); +} |
