summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xindra/newview/llfloaterperms.cpp11
-rwxr-xr-xindra/newview/llfloaterperms.h3
-rwxr-xr-xindra/newview/llviewerinventory.cpp3
-rw-r--r--indra/newview/skins/default/xui/en/floater_perms_default.xml40
4 files changed, 38 insertions, 19 deletions
diff --git a/indra/newview/llfloaterperms.cpp b/indra/newview/llfloaterperms.cpp
index b4ea34d5f1..0178c0b4f1 100755
--- a/indra/newview/llfloaterperms.cpp
+++ b/indra/newview/llfloaterperms.cpp
@@ -103,6 +103,7 @@ LLFloaterPermsDefault::LLFloaterPermsDefault(const LLSD& seed)
: LLFloater(seed)
{
mCommitCallbackRegistrar.add("PermsDefault.Copy", boost::bind(&LLFloaterPermsDefault::onCommitCopy, this, _2));
+ mCommitCallbackRegistrar.add("PermsDefault.Apply", boost::bind(&LLFloaterPermsDefault::onClickApply, this));
mCommitCallbackRegistrar.add("PermsDefault.OK", boost::bind(&LLFloaterPermsDefault::onClickOK, this));
mCommitCallbackRegistrar.add("PermsDefault.Cancel", boost::bind(&LLFloaterPermsDefault::onClickCancel, this));
}
@@ -129,9 +130,14 @@ BOOL LLFloaterPermsDefault::postBuild()
return true;
}
+void LLFloaterPermsDefault::onClickApply()
+{
+ apply();
+}
+
void LLFloaterPermsDefault::onClickOK()
{
- ok();
+ apply();
closeFloater();
}
@@ -164,7 +170,6 @@ private:
void error(U32 status, const std::string& reason)
{
-llwarns << "DBG !" << sPreviousReason << "!" << llendl;
// Do not display the same error more than once in a row
if (reason != sPreviousReason)
{
@@ -217,7 +222,7 @@ void LLFloaterPermsDefault::setCapSent(bool cap_sent)
mCapSent = cap_sent;
}
-void LLFloaterPermsDefault::ok()
+void LLFloaterPermsDefault::apply()
{
// Changes were already applied automatically to saved settings.
// Refreshing internal values makes it official.
diff --git a/indra/newview/llfloaterperms.h b/indra/newview/llfloaterperms.h
index 2bb0a19dc1..12f297960a 100755
--- a/indra/newview/llfloaterperms.h
+++ b/indra/newview/llfloaterperms.h
@@ -54,8 +54,9 @@ class LLFloaterPermsDefault : public LLFloater
public:
/*virtual*/ BOOL postBuild();
- void ok();
+ void apply();
void cancel();
+ void onClickApply();
void onClickOK();
void onClickCancel();
void onCommitCopy(const LLSD& user_data);
diff --git a/indra/newview/llviewerinventory.cpp b/indra/newview/llviewerinventory.cpp
index c52505e4b3..5c41ef52b6 100755
--- a/indra/newview/llviewerinventory.cpp
+++ b/indra/newview/llviewerinventory.cpp
@@ -1004,6 +1004,7 @@ void create_script_cb(const LLUUID& inv_item)
item->setPermissions(perm);
+ item->updateServer(FALSE);
gInventory.updateItem(item);
gInventory.notifyObservers();
}
@@ -1024,6 +1025,7 @@ void create_gesture_cb(const LLUUID& inv_item)
item->setPermissions(perm);
+ item->updateServer(FALSE);
gInventory.updateItem(item);
gInventory.notifyObservers();
@@ -1047,6 +1049,7 @@ void create_notecard_cb(const LLUUID& inv_item)
item->setPermissions(perm);
+ item->updateServer(FALSE);
gInventory.updateItem(item);
gInventory.notifyObservers();
}
diff --git a/indra/newview/skins/default/xui/en/floater_perms_default.xml b/indra/newview/skins/default/xui/en/floater_perms_default.xml
index 9c3b92bc83..4e44c9ebb3 100644
--- a/indra/newview/skins/default/xui/en/floater_perms_default.xml
+++ b/indra/newview/skins/default/xui/en/floater_perms_default.xml
@@ -17,24 +17,22 @@
name="default permissions"
top="20"
width="690">
-
<view_border
bevel_style="none"
height="18"
top="8"
left="0"
width="430" />
-
- <text
- type="string"
- length="1"
- follows="left|top"
- height="16"
- halign="right"
- layout="topleft"
- left="0"
- top="10"
- width="115">
+ <text
+ type="string"
+ length="1"
+ follows="left|top"
+ height="16"
+ halign="right"
+ layout="topleft"
+ left="0"
+ top="10"
+ width="115">
Next owner:
</text>
<text
@@ -481,14 +479,26 @@
</panel>
<button
height="20"
+ label="Apply"
+ label_selected="Apply"
+ layout="topleft"
+ name="apply"
+ left="375"
+ width="100">
+ <button.commit_callback
+ function="PermsDefault.Apply" />
+ </button>
+ <button
+ height="20"
label="OK"
label_selected="OK"
layout="topleft"
+ left_pad="5"
name="ok"
- left="480"
+ top_delta="0"
width="100">
- <button.commit_callback
- function="PermsDefault.OK" />
+ <button.commit_callback
+ function="PermsDefault.OK" />
</button>
<button
height="20"