diff options
author | Jacek Antonelli | 2008-08-15 23:44:56 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:56 -0500 |
commit | c07901e29ed545bbb02e3bddf148fe1104b94e9f (patch) | |
tree | f1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/llui/llfloater.cpp | |
parent | Second Life viewer sources 1.15.0.2 (diff) | |
download | meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2 meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz |
Second Life viewer sources 1.15.1.3
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llui/llfloater.cpp | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/linden/indra/llui/llfloater.cpp b/linden/indra/llui/llfloater.cpp index 12758b3..1613fd7 100644 --- a/linden/indra/llui/llfloater.cpp +++ b/linden/indra/llui/llfloater.cpp | |||
@@ -696,7 +696,13 @@ void LLFloater::translate(S32 x, S32 y) | |||
696 | 696 | ||
697 | BOOL LLFloater::canSnapTo(LLView* other_view) | 697 | BOOL LLFloater::canSnapTo(LLView* other_view) |
698 | { | 698 | { |
699 | if (other_view && other_view != getParent()) | 699 | if (NULL == other_view) |
700 | { | ||
701 | llwarns << "other_view is NULL" << llendl; | ||
702 | return FALSE; | ||
703 | } | ||
704 | |||
705 | if (other_view != getParent()) | ||
700 | { | 706 | { |
701 | LLFloater* other_floaterp = (LLFloater*)other_view; | 707 | LLFloater* other_floaterp = (LLFloater*)other_view; |
702 | 708 | ||
@@ -1933,7 +1939,11 @@ void LLFloaterView::bringToFront(LLFloater* child, BOOL give_focus) | |||
1933 | LLFloater* floaterp = (LLFloater*)(*view_it); | 1939 | LLFloater* floaterp = (LLFloater*)(*view_it); |
1934 | sendChildToFront(floaterp); | 1940 | sendChildToFront(floaterp); |
1935 | 1941 | ||
1936 | floaterp->setMinimized(FALSE); | 1942 | // always unminimize dependee, but allow dependents to stay minimized |
1943 | if (!floaterp->isDependent()) | ||
1944 | { | ||
1945 | floaterp->setMinimized(FALSE); | ||
1946 | } | ||
1937 | } | 1947 | } |
1938 | floaters_to_move.clear(); | 1948 | floaters_to_move.clear(); |
1939 | 1949 | ||
@@ -1945,7 +1955,9 @@ void LLFloaterView::bringToFront(LLFloater* child, BOOL give_focus) | |||
1945 | if (dependent) | 1955 | if (dependent) |
1946 | { | 1956 | { |
1947 | sendChildToFront(dependent); | 1957 | sendChildToFront(dependent); |
1948 | dependent->setMinimized(FALSE); | 1958 | //don't un-minimize dependent windows automatically |
1959 | // respect user's wishes | ||
1960 | //dependent->setMinimized(FALSE); | ||
1949 | } | 1961 | } |
1950 | ++dependent_it; | 1962 | ++dependent_it; |
1951 | } | 1963 | } |
@@ -2555,6 +2567,7 @@ void LLMultiFloater::addFloater(LLFloater* floaterp, BOOL select_added_floater, | |||
2555 | if (!mTabContainer) | 2567 | if (!mTabContainer) |
2556 | { | 2568 | { |
2557 | llerrs << "Tab Container used without having been initialized." << llendl; | 2569 | llerrs << "Tab Container used without having been initialized." << llendl; |
2570 | return; | ||
2558 | } | 2571 | } |
2559 | 2572 | ||
2560 | if (floaterp->getHost() == this) | 2573 | if (floaterp->getHost() == this) |
@@ -2718,7 +2731,7 @@ void LLMultiFloater::setVisible(BOOL visible) | |||
2718 | BOOL LLMultiFloater::handleKeyHere(KEY key, MASK mask, BOOL called_from_parent) | 2731 | BOOL LLMultiFloater::handleKeyHere(KEY key, MASK mask, BOOL called_from_parent) |
2719 | { | 2732 | { |
2720 | if (getEnabled() | 2733 | if (getEnabled() |
2721 | && mask == (MASK_CONTROL|MASK_SHIFT)) | 2734 | && mask == MASK_CONTROL) |
2722 | { | 2735 | { |
2723 | if (key == 'W') | 2736 | if (key == 'W') |
2724 | { | 2737 | { |