Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
0ad34bfb
Commit
0ad34bfb
authored
3 years ago
by
Mnikolenko Productengine
Browse files
Options
Downloads
Patches
Plain Diff
SL-15094 FIXED ‘My last location’ is used instead of entered location
parent
1dfbce81
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llpanellogin.cpp
+9
-6
9 additions, 6 deletions
indra/newview/llpanellogin.cpp
indra/newview/llpanellogin.h
+1
-1
1 addition, 1 deletion
indra/newview/llpanellogin.h
with
10 additions
and
7 deletions
indra/newview/llpanellogin.cpp
+
9
−
6
View file @
0ad34bfb
...
@@ -254,7 +254,7 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect,
...
@@ -254,7 +254,7 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect,
LLLineEditor
*
password_edit
(
getChild
<
LLLineEditor
>
(
"password_edit"
));
LLLineEditor
*
password_edit
(
getChild
<
LLLineEditor
>
(
"password_edit"
));
password_edit
->
setKeystrokeCallback
(
onPassKey
,
this
);
password_edit
->
setKeystrokeCallback
(
onPassKey
,
this
);
// STEAM-14: When user presses Enter with this field in focus, initiate login
// STEAM-14: When user presses Enter with this field in focus, initiate login
password_edit
->
setCommitCallback
(
boost
::
bind
(
&
LLPanelLogin
::
onClickConnect
,
this
));
password_edit
->
setCommitCallback
(
boost
::
bind
(
&
LLPanelLogin
::
onClickConnect
,
false
));
// change z sort of clickable text to be behind buttons
// change z sort of clickable text to be behind buttons
sendChildToBack
(
getChildView
(
"forgot_password_text"
));
sendChildToBack
(
getChildView
(
"forgot_password_text"
));
...
@@ -265,7 +265,7 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect,
...
@@ -265,7 +265,7 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect,
{
{
LLComboBox
*
favorites_combo
=
getChild
<
LLComboBox
>
(
"start_location_combo"
);
LLComboBox
*
favorites_combo
=
getChild
<
LLComboBox
>
(
"start_location_combo"
);
updateLocationSelectorsVisibility
();
// separate so that it can be called from preferences
updateLocationSelectorsVisibility
();
// separate so that it can be called from preferences
favorites_combo
->
setReturnCallback
(
boost
::
bind
(
&
LLPanelLogin
::
onClickConnect
,
this
));
favorites_combo
->
setReturnCallback
(
boost
::
bind
(
&
LLPanelLogin
::
onClickConnect
,
false
));
favorites_combo
->
setFocusLostCallback
(
boost
::
bind
(
&
LLPanelLogin
::
onLocationSLURL
,
this
));
favorites_combo
->
setFocusLostCallback
(
boost
::
bind
(
&
LLPanelLogin
::
onLocationSLURL
,
this
));
LLComboBox
*
server_choice_combo
=
getChild
<
LLComboBox
>
(
"server_combo"
);
LLComboBox
*
server_choice_combo
=
getChild
<
LLComboBox
>
(
"server_combo"
);
...
@@ -997,12 +997,15 @@ void LLPanelLogin::handleMediaEvent(LLPluginClassMedia* /*self*/, EMediaEvent ev
...
@@ -997,12 +997,15 @@ void LLPanelLogin::handleMediaEvent(LLPluginClassMedia* /*self*/, EMediaEvent ev
// Protected methods
// Protected methods
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
// static
// static
void
LLPanelLogin
::
onClickConnect
(
void
*
)
void
LLPanelLogin
::
onClickConnect
(
bool
commit_fields
)
{
{
if
(
sInstance
&&
sInstance
->
mCallback
)
if
(
sInstance
&&
sInstance
->
mCallback
)
{
{
// JC - Make sure the fields all get committed.
if
(
commit_fields
)
sInstance
->
setFocus
(
FALSE
);
{
// JC - Make sure the fields all get committed.
sInstance
->
setFocus
(
FALSE
);
}
LLComboBox
*
combo
=
sInstance
->
getChild
<
LLComboBox
>
(
"server_combo"
);
LLComboBox
*
combo
=
sInstance
->
getChild
<
LLComboBox
>
(
"server_combo"
);
LLSD
combo_val
=
combo
->
getSelectedValue
();
LLSD
combo_val
=
combo
->
getSelectedValue
();
...
@@ -1125,7 +1128,7 @@ void LLPanelLogin::onUserListCommit(void*)
...
@@ -1125,7 +1128,7 @@ void LLPanelLogin::onUserListCommit(void*)
}
}
else
else
{
{
onClickConnect
(
NULL
);
onClickConnect
();
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llpanellogin.h
+
1
−
1
View file @
0ad34bfb
...
@@ -98,7 +98,7 @@ class LLPanelLogin:
...
@@ -98,7 +98,7 @@ class LLPanelLogin:
static
void
setFields
(
LLPointer
<
LLCredential
>
credential
);
static
void
setFields
(
LLPointer
<
LLCredential
>
credential
);
static
void
onClickConnect
(
void
*
);
static
void
onClickConnect
(
bool
commit_fields
=
true
);
static
void
onClickNewAccount
(
void
*
);
static
void
onClickNewAccount
(
void
*
);
static
void
onClickVersion
(
void
*
);
static
void
onClickVersion
(
void
*
);
static
void
onClickForgotPassword
(
void
*
);
static
void
onClickForgotPassword
(
void
*
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment