summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterbuyland.cpp
diff options
context:
space:
mode:
authorJosh Bell <josh@lindenlab.com>2008-03-14 19:27:38 +0000
committerJosh Bell <josh@lindenlab.com>2008-03-14 19:27:38 +0000
commit133a7b5fe2bcaaec8389b209cb5bd774ebc2ab63 (patch)
treed7a8f7846af7dc948d9e11c5a75dd830fb12465c /indra/newview/llfloaterbuyland.cpp
parenta1cde743e755d826c86aeb006d2027ad2e5c8ce3 (diff)
svn merge -r 82272:82277 svn+ssh://svn.lindenlab.com/svn/linden/branches/maint-ui-9-merge-2 --> release
QAR-364 - merge of maint-ui-9
Diffstat (limited to 'indra/newview/llfloaterbuyland.cpp')
-rw-r--r--indra/newview/llfloaterbuyland.cpp21
1 files changed, 20 insertions, 1 deletions
diff --git a/indra/newview/llfloaterbuyland.cpp b/indra/newview/llfloaterbuyland.cpp
index 52736c8c60..5450b6de26 100644
--- a/indra/newview/llfloaterbuyland.cpp
+++ b/indra/newview/llfloaterbuyland.cpp
@@ -187,6 +187,7 @@ public:
virtual void draw();
virtual BOOL canClose();
virtual void onClose(bool app_quitting);
+ /*virtual*/ void setMinimized(BOOL b);
private:
class SelectionObserver : public LLParcelObserver
@@ -968,9 +969,27 @@ void LLFloaterBuyLandUI::draw()
}
}
+// virtual
BOOL LLFloaterBuyLandUI::canClose()
{
- return (mTransaction ? FALSE : TRUE) && mCurrency.canCancel();
+ bool can_close = (mTransaction ? FALSE : TRUE) && mCurrency.canCancel();
+ if (!can_close)
+ {
+ // explain to user why they can't do this, see DEV-9605
+ gViewerWindow->alertXml("CannotCloseFloaterBuyLand");
+ }
+ return can_close;
+}
+
+// virtual
+void LLFloaterBuyLandUI::setMinimized(BOOL minimize)
+{
+ bool restored = (isMinimized() && !minimize);
+ LLFloater::setMinimized(minimize);
+ if (restored)
+ {
+ refreshUI();
+ }
}
void LLFloaterBuyLandUI::onClose(bool app_quitting)