summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterbuyland.cpp
diff options
context:
space:
mode:
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)