summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authormaxim_productengine <mnikolenko@productengine.com>2018-09-28 15:56:48 +0300
committermaxim_productengine <mnikolenko@productengine.com>2018-09-28 15:56:48 +0300
commit6401ed2298f46df6c72526b811a88c5e3b3eee46 (patch)
tree7cc641a52f8db6edfc385bf0daea5916a971b6f0 /indra/newview
parenta309d30554fbc14f8ee3dfa84fdc8c94709efa82 (diff)
SL-9620 FIXED Viewer crashes after clicking "Commit" button while editing Day Cycle preset
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llpanelenvironment.cpp2
-rw-r--r--indra/newview/lltoastalertpanel.cpp5
2 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llpanelenvironment.cpp b/indra/newview/llpanelenvironment.cpp
index 6e2f3450fb..21b9c4edbd 100644
--- a/indra/newview/llpanelenvironment.cpp
+++ b/indra/newview/llpanelenvironment.cpp
@@ -126,6 +126,8 @@ LLPanelEnvironmentInfo::~LLPanelEnvironmentInfo()
{
if (mChangeMonitor.connected())
mChangeMonitor.disconnect();
+ if (mCommitConnection.connected())
+ mCommitConnection.disconnect();
}
BOOL LLPanelEnvironmentInfo::postBuild()
diff --git a/indra/newview/lltoastalertpanel.cpp b/indra/newview/lltoastalertpanel.cpp
index 495c9c1f44..f31e3cfb14 100644
--- a/indra/newview/lltoastalertpanel.cpp
+++ b/indra/newview/lltoastalertpanel.cpp
@@ -268,14 +268,15 @@ LLToastAlertPanel::LLToastAlertPanel( LLNotificationPtr notification, bool modal
mLineEditor->setMaxTextChars(edit_text_max_chars);
mLineEditor->setText(edit_text_contents);
- if("SaveOutfitAs" == mNotification->getName())
+ std::string notif_name = mNotification->getName();
+ if (("SaveOutfitAs" == notif_name) || ("SaveSettingAs" == notif_name))
{
mLineEditor->setPrevalidate(&LLTextValidate::validateASCII);
}
// decrease limit of line editor of teleport offer dialog to avoid truncation of
// location URL in invitation message, see EXT-6891
- if ("OfferTeleport" == mNotification->getName())
+ if ("OfferTeleport" == notif_name)
{
mLineEditor->setMaxTextLength(gSavedSettings.getS32(
"teleport_offer_invitation_max_length"));