aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-09-18 00:23:20 -0700
committerMcCabe Maxsted2010-09-18 00:23:20 -0700
commit4616987a25b6c0285e618173ccabce21f2a50926 (patch)
tree6b1c78bd7c4b4c0f658619464de2a386a766cffb /linden/indra/newview
parentUI Scale Reset button finds the actual default, not hardcoded. (diff)
parentFixed events handling on osx to behave correctly on 10.5+ compilation runs. (diff)
downloadmeta-impy-4616987a25b6c0285e618173ccabce21f2a50926.zip
meta-impy-4616987a25b6c0285e618173ccabce21f2a50926.tar.gz
meta-impy-4616987a25b6c0285e618173ccabce21f2a50926.tar.bz2
meta-impy-4616987a25b6c0285e618173ccabce21f2a50926.tar.xz
Merge remote branch 'elektra/weekly' into weekly
Diffstat (limited to 'linden/indra/newview')
-rw-r--r--linden/indra/newview/llchatbar.cpp5
-rw-r--r--linden/indra/newview/llimpanel.cpp8
2 files changed, 10 insertions, 3 deletions
diff --git a/linden/indra/newview/llchatbar.cpp b/linden/indra/newview/llchatbar.cpp
index 2981958..eaa8cc8 100644
--- a/linden/indra/newview/llchatbar.cpp
+++ b/linden/indra/newview/llchatbar.cpp
@@ -215,16 +215,17 @@ BOOL LLChatBar::handleKeyHere( KEY key, MASK mask )
215 { 215 {
216 if (mInputEditor) 216 if (mInputEditor)
217 { 217 {
218 std::string txt(mInputEditor->getText());
219
218 std::vector<LLUUID> avatar_ids; 220 std::vector<LLUUID> avatar_ids;
219 std::vector<LLVector3d> positions; 221 std::vector<LLVector3d> positions;
220 LLWorld::getInstance()->getAvatars(&avatar_ids, &positions); 222 LLWorld::getInstance()->getAvatars(&avatar_ids, &positions);
221 223
222 if (!avatar_ids.empty()) 224 if (!avatar_ids.empty() && !txt.empty())
223 { 225 {
224 mInputEditor->deleteSelection(); // Clean up prev completion before attempting a new one 226 mInputEditor->deleteSelection(); // Clean up prev completion before attempting a new one
225 227
226 S32 cursorPos = mInputEditor->getCursor(); 228 S32 cursorPos = mInputEditor->getCursor();
227 std::string txt(mInputEditor->getText());
228 229
229 if (mCompletionHolder.last_txt != mInputEditor->getText()) 230 if (mCompletionHolder.last_txt != mInputEditor->getText())
230 { 231 {
diff --git a/linden/indra/newview/llimpanel.cpp b/linden/indra/newview/llimpanel.cpp
index 797e997..808a2c9 100644
--- a/linden/indra/newview/llimpanel.cpp
+++ b/linden/indra/newview/llimpanel.cpp
@@ -1875,7 +1875,13 @@ void LLFloaterIMPanel::onCommitCombo(LLUICtrl* caller, void* userdata)
1875 std::string fullname = self->getTitle(); 1875 std::string fullname = self->getTitle();
1876 //gCacheName->getFullName(self->mOtherParticipantUUID, fullname); 1876 //gCacheName->getFullName(self->mOtherParticipantUUID, fullname);
1877 //if(fullname == "(Loading...)") 1877 //if(fullname == "(Loading...)")
1878 std::string file = gDirUtilp->getPerAccountChatLogsDir() + "\\" + fullname + ".txt"; 1878 std::string separator;
1879#ifdef LL_WINDOWS
1880 separator = "\\";
1881#else
1882 separator = "/";
1883#endif
1884 std::string file = gDirUtilp->getPerAccountChatLogsDir() + separator + fullname + ".txt";
1879 1885
1880 llstat stat_info; 1886 llstat stat_info;
1881 if (LLFile::stat(file.c_str(), &stat_info)) 1887 if (LLFile::stat(file.c_str(), &stat_info))