diff options
author | Rick Pasetto <rick@lindenlab.com> | 2009-11-30 16:01:20 -0800 |
---|---|---|
committer | Rick Pasetto <rick@lindenlab.com> | 2009-11-30 16:01:20 -0800 |
commit | 5040a726755939704a3de14187d9d020caea4d9d (patch) | |
tree | 9518caffd498fd1677cab72ba2646f0d4ad4539f /indra/newview/llfloatermediasettings.h | |
parent | 8671bfb930f5fdaec8e2c0338b376bc41224199e (diff) |
DEV-43041 DEV-41648 - disable OK and Apply if the media data is the same as the initial
Review #48
This change kills two birds with one stone: every frame, we check to see if the media data is the same as the one we 'initialize' with. If it is, we disable OK and Cancel. Otherwise we enable them. This makes it very difficult to set empty media data, as well as fixing the "apply button doesn't grey out" bug.
Diffstat (limited to 'indra/newview/llfloatermediasettings.h')
-rw-r--r-- | indra/newview/llfloatermediasettings.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/indra/newview/llfloatermediasettings.h b/indra/newview/llfloatermediasettings.h index 17a47cb0f5..e2af1705bf 100644 --- a/indra/newview/llfloatermediasettings.h +++ b/indra/newview/llfloatermediasettings.h @@ -54,11 +54,13 @@ public: static void apply(); static void initValues( const LLSD& media_settings , bool editable); static void clearValues( bool editable); - void enableOkApplyBtns( bool enable ); - LLPanelMediaSettingsSecurity* getPanelSecurity(){return mPanelMediaSettingsSecurity;}; - const std::string getHomeUrl(); + + LLPanelMediaSettingsSecurity* getPanelSecurity(){return mPanelMediaSettingsSecurity;}; + const std::string getHomeUrl(); bool passesWhiteList( const std::string& test_url ); + virtual void draw(); + bool mIdenticalHasMediaInfo; bool mMultipleMedia; bool mMultipleValidMedia; @@ -83,6 +85,10 @@ protected: static LLFloaterMediaSettings* sInstance; private: + + void enableOkApplyBtns( bool enable ); + + LLSD mInitialValues; bool mWaitingToClose; }; |