diff options
Diffstat (limited to 'linden/indra/llui/llfloater.cpp')
-rw-r--r-- | linden/indra/llui/llfloater.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/linden/indra/llui/llfloater.cpp b/linden/indra/llui/llfloater.cpp index 2924c29..94af186 100644 --- a/linden/indra/llui/llfloater.cpp +++ b/linden/indra/llui/llfloater.cpp | |||
@@ -17,7 +17,8 @@ | |||
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | 20 | * online at |
21 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
21 | * | 22 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 23 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 24 | * that you have read and understood your obligations described above, |
@@ -147,6 +148,7 @@ LLFloater::LLFloater() : | |||
147 | } | 148 | } |
148 | mDragHandle = NULL; | 149 | mDragHandle = NULL; |
149 | mHandle.bind(this); | 150 | mHandle.bind(this); |
151 | mNotificationContext = new LLFloaterNotificationContext(getHandle()); | ||
150 | } | 152 | } |
151 | 153 | ||
152 | LLFloater::LLFloater(const std::string& name) | 154 | LLFloater::LLFloater(const std::string& name) |
@@ -220,6 +222,7 @@ void LLFloater::initFloater(const std::string& title, | |||
220 | BOOL drag_on_left, BOOL minimizable, BOOL close_btn) | 222 | BOOL drag_on_left, BOOL minimizable, BOOL close_btn) |
221 | { | 223 | { |
222 | mHandle.bind(this); | 224 | mHandle.bind(this); |
225 | mNotificationContext = new LLFloaterNotificationContext(getHandle()); | ||
223 | 226 | ||
224 | // Init function can be called more than once, so clear out old data. | 227 | // Init function can be called more than once, so clear out old data. |
225 | for (S32 i = 0; i < BUTTON_COUNT; i++) | 228 | for (S32 i = 0; i < BUTTON_COUNT; i++) |
@@ -429,6 +432,9 @@ void LLFloater::initFloater(const std::string& title, | |||
429 | // virtual | 432 | // virtual |
430 | LLFloater::~LLFloater() | 433 | LLFloater::~LLFloater() |
431 | { | 434 | { |
435 | delete mNotificationContext; | ||
436 | mNotificationContext = NULL; | ||
437 | |||
432 | control_map_t::iterator itor; | 438 | control_map_t::iterator itor; |
433 | for (itor = mFloaterControls.begin(); itor != mFloaterControls.end(); ++itor) | 439 | for (itor = mFloaterControls.begin(); itor != mFloaterControls.end(); ++itor) |
434 | { | 440 | { |
@@ -774,7 +780,7 @@ void LLFloater::snappedTo(const LLView* snap_view) | |||
774 | 780 | ||
775 | void LLFloater::userSetShape(const LLRect& new_rect) | 781 | void LLFloater::userSetShape(const LLRect& new_rect) |
776 | { | 782 | { |
777 | const LLRect& old_rect = getRect(); | 783 | const LLRect old_rect = getRect(); |
778 | LLView::userSetShape(new_rect); | 784 | LLView::userSetShape(new_rect); |
779 | 785 | ||
780 | // if not minimized, adjust all snapped dependents to new shape | 786 | // if not minimized, adjust all snapped dependents to new shape |
@@ -1697,7 +1703,7 @@ void LLFloater::buildButtons() | |||
1697 | LLStringUtil::null, | 1703 | LLStringUtil::null, |
1698 | sButtonCallbacks[i], | 1704 | sButtonCallbacks[i], |
1699 | this, | 1705 | this, |
1700 | LLFontGL::sSansSerif); | 1706 | LLFontGL::getFontSansSerif()); |
1701 | 1707 | ||
1702 | buttonp->setTabStop(FALSE); | 1708 | buttonp->setTabStop(FALSE); |
1703 | buttonp->setFollowsTop(); | 1709 | buttonp->setFollowsTop(); |