summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelmediasettingsgeneral.cpp
diff options
context:
space:
mode:
authorskolb <none@none>2009-10-12 11:24:14 -0700
committerskolb <none@none>2009-10-12 11:24:14 -0700
commit1d63b145481021c5d0ed16bd0c10c320170d0cf5 (patch)
tree1ce48042a073b62504367570d13c676f24493ea1 /indra/newview/llpanelmediasettingsgeneral.cpp
parentd4b2897700c66354413af42ab055bd1aaa47f91c (diff)
Merge changes to llpanelmediasettingsgeneral to handle reset button
Diffstat (limited to 'indra/newview/llpanelmediasettingsgeneral.cpp')
-rw-r--r--indra/newview/llpanelmediasettingsgeneral.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llpanelmediasettingsgeneral.cpp b/indra/newview/llpanelmediasettingsgeneral.cpp
index a33d9604fe..1ac6330b0f 100644
--- a/indra/newview/llpanelmediasettingsgeneral.cpp
+++ b/indra/newview/llpanelmediasettingsgeneral.cpp
@@ -32,6 +32,7 @@
#include "llviewerprecompiledheaders.h"
+#include "llagent.h"
#include "llpanelmediasettingsgeneral.h"
#include "llcombobox.h"
#include "llcheckboxctrl.h"
@@ -47,6 +48,7 @@
#include "llmediaentry.h"
#include "llmediactrl.h"
#include "llpanelcontents.h"
+#include "llpermissions.h"
#include "llpluginclassmedia.h"
#include "llfloatermediasettings.h"
#include "llfloatertools.h"
@@ -159,8 +161,8 @@ void LLPanelMediaSettingsGeneral::draw()
// current URL can change over time.
// updateCurrentURL();
- // enable/disable RESRET button depending on permissions
- // since this is the same as a navigate action
+ LLPermissions perm;
+ BOOL valid = LLSelectMgr::getInstance()->selectGetPermissions(perm);
bool user_can_press_reset = gFloaterTools->selectedMediaEditable();
// several places modify this widget so we must collect states in one place