aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloatergesture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfloatergesture.cpp')
-rw-r--r--linden/indra/newview/llfloatergesture.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/linden/indra/newview/llfloatergesture.cpp b/linden/indra/newview/llfloatergesture.cpp
index addcf1d..e62a589 100644
--- a/linden/indra/newview/llfloatergesture.cpp
+++ b/linden/indra/newview/llfloatergesture.cpp
@@ -52,7 +52,7 @@
52#include "llscrollcontainer.h" 52#include "llscrollcontainer.h"
53#include "llscrolllistctrl.h" 53#include "llscrolllistctrl.h"
54#include "lltextbox.h" 54#include "lltextbox.h"
55#include "llvieweruictrlfactory.h" 55#include "lluictrlfactory.h"
56#include "llviewergesture.h" 56#include "llviewergesture.h"
57#include "llviewerimagelist.h" 57#include "llviewerimagelist.h"
58#include "llviewerinventory.h" 58#include "llviewerinventory.h"
@@ -99,7 +99,7 @@ LLFloaterGesture::~LLFloaterGesture()
99 99
100 // Custom saving rectangle, since load must be done 100 // Custom saving rectangle, since load must be done
101 // after postBuild. 101 // after postBuild.
102 gSavedSettings.setRect("FloaterGestureRect", getRect()); 102 gSavedSettings.setRect("FloaterGestureRect2", getRect());
103} 103}
104 104
105// virtual 105// virtual
@@ -144,10 +144,10 @@ void LLFloaterGesture::show()
144 LLFloaterGesture *self = new LLFloaterGesture(); 144 LLFloaterGesture *self = new LLFloaterGesture();
145 145
146 // Builds and adds to gFloaterView 146 // Builds and adds to gFloaterView
147 gUICtrlFactory->buildFloater(self, "floater_gesture.xml"); 147 LLUICtrlFactory::getInstance()->buildFloater(self, "floater_gesture.xml");
148 148
149 // Fix up rectangle 149 // Fix up rectangle
150 LLRect rect = gSavedSettings.getRect("FloaterGestureRect"); 150 LLRect rect = gSavedSettings.getRect("FloaterGestureRect2");
151 self->reshape(rect.getWidth(), rect.getHeight()); 151 self->reshape(rect.getWidth(), rect.getHeight());
152 self->setRect(rect); 152 self->setRect(rect);
153 153
@@ -156,7 +156,12 @@ void LLFloaterGesture::show()
156 self->childSetFocus("gesture_list"); 156 self->childSetFocus("gesture_list");
157 157
158 LLCtrlListInterface *list = self->childGetListInterface("gesture_list"); 158 LLCtrlListInterface *list = self->childGetListInterface("gesture_list");
159 if (list) list->selectFirstItem(); 159 if (list)
160 {
161 const BOOL ascending = TRUE;
162 list->sortByColumn("name", ascending);
163 list->selectFirstItem();
164 }
160 165
161 self->mSelectedID = LLUUID::null; 166 self->mSelectedID = LLUUID::null;
162 167