summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Linden <none@none>2011-03-01 20:11:49 -0800
committerRichard Linden <none@none>2011-03-01 20:11:49 -0800
commit592294a6acbbc8681d3fc808db5d3e24bf62a524 (patch)
tree14e212a7bcbf871b21e6406d9f38ca0488eed0d4
parent397c772505402422eafee5ec27b741d8bd030c8b (diff)
SOCIAL-615 FIX Selecting create group, classified, or pick in profile and responding to notification with Don't Quit, clicking on the action again does not show notification
-rw-r--r--indra/newview/llappviewer.cpp14
-rw-r--r--indra/newview/llgroupactions.cpp2
-rwxr-xr-xindra/newview/llpanelpicks.cpp4
3 files changed, 17 insertions, 3 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index c47dcc11b2..c8b7895d3f 100644
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -3311,6 +3311,20 @@ static bool finish_quit(const LLSD& notification, const LLSD& response)
}
static LLNotificationFunctorRegistration finish_quit_reg("ConfirmQuit", finish_quit);
+static bool switch_standard_skin_and_quit(const LLSD& notification, const LLSD& response)
+{
+ S32 option = LLNotificationsUtil::getSelectedOption(notification, response);
+
+ if (option == 0)
+ {
+ gSavedSettings.setString("SessionSettingsFile", "");
+ LLAppViewer::instance()->requestQuit();
+ }
+ return false;
+}
+
+static LLNotificationFunctorRegistration standard_skin_quit_reg("SwitchToStandardSkinAndQuit", switch_standard_skin_and_quit);
+
void LLAppViewer::userQuit()
{
if (gDisconnected || gViewerWindow->getProgressView()->getVisible())
diff --git a/indra/newview/llgroupactions.cpp b/indra/newview/llgroupactions.cpp
index 6953723f0c..7c56e610ce 100644
--- a/indra/newview/llgroupactions.cpp
+++ b/indra/newview/llgroupactions.cpp
@@ -55,7 +55,7 @@ public:
{
if (!LLUI::sSettingGroups["config"]->getBOOL("EnableGroupInfo"))
{
- LLNotificationsUtil::add("NoGroupInfo", LLSD(), LLSD(), std::string("ConfirmQuit"));
+ LLNotificationsUtil::add("NoGroupInfo", LLSD(), LLSD(), std::string("SwitchToStandardSkinAndQuit"));
return true;
}
diff --git a/indra/newview/llpanelpicks.cpp b/indra/newview/llpanelpicks.cpp
index d27f29ca14..ddce83c616 100755
--- a/indra/newview/llpanelpicks.cpp
+++ b/indra/newview/llpanelpicks.cpp
@@ -86,7 +86,7 @@ public:
{
if (!LLUI::sSettingGroups["config"]->getBOOL("EnablePicks"))
{
- LLNotificationsUtil::add("NoPicks", LLSD(), LLSD(), std::string("ConfirmQuit"));
+ LLNotificationsUtil::add("NoPicks", LLSD(), LLSD(), std::string("SwitchToStandardSkinAndQuit"));
return true;
}
@@ -198,7 +198,7 @@ public:
{
if (!LLUI::sSettingGroups["config"]->getBOOL("EnableClassifieds"))
{
- LLNotificationsUtil::add("NoClassifieds", LLSD(), LLSD(), std::string("ConfirmQuit"));
+ LLNotificationsUtil::add("NoClassifieds", LLSD(), LLSD(), std::string("SwitchToStandardSkinAndQuit"));
return true;
}