aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui
diff options
context:
space:
mode:
authorDavid Walter Seikel2011-07-21 21:00:47 +1000
committerDavid Walter Seikel2011-07-21 21:00:47 +1000
commitf4d07b4a04b432141d8426932f4dd955b9f1a9f1 (patch)
tree1b8e09f6c0ba902fb2212e9c05c4b361fbcb6bbb /linden/indra/llui
parentBump version number. (diff)
parentSupport modulo in llcalcparser (diff)
downloadmeta-impy-f4d07b4a04b432141d8426932f4dd955b9f1a9f1.zip
meta-impy-f4d07b4a04b432141d8426932f4dd955b9f1a9f1.tar.gz
meta-impy-f4d07b4a04b432141d8426932f4dd955b9f1a9f1.tar.bz2
meta-impy-f4d07b4a04b432141d8426932f4dd955b9f1a9f1.tar.xz
Merge remote-tracking branch 'imprudence/1.4-beta1.5' into next
Conflicts (merged manually): .gitignore linden/indra/newview/llgesturemgr.cpp linden/indra/newview/viewerinfo.cpp
Diffstat (limited to 'linden/indra/llui')
-rw-r--r--linden/indra/llui/llfloater.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/linden/indra/llui/llfloater.cpp b/linden/indra/llui/llfloater.cpp
index bb42ca3..58c717a 100644
--- a/linden/indra/llui/llfloater.cpp
+++ b/linden/indra/llui/llfloater.cpp
@@ -1368,6 +1368,7 @@ LLFloater* LLFloater::getClosableFloaterFromFocus()
1368 1368
1369 // The focused floater may not be closable, 1369 // The focused floater may not be closable,
1370 // Find and close a parental floater that is closeable, if any. 1370 // Find and close a parental floater that is closeable, if any.
1371 LLFloater* prev_floater = NULL;
1371 for(LLFloater* floater_to_close = focused_floater; 1372 for(LLFloater* floater_to_close = focused_floater;
1372 NULL != floater_to_close; 1373 NULL != floater_to_close;
1373 floater_to_close = gFloaterView->getParentFloater(floater_to_close)) 1374 floater_to_close = gFloaterView->getParentFloater(floater_to_close))
@@ -1376,6 +1377,15 @@ LLFloater* LLFloater::getClosableFloaterFromFocus()
1376 { 1377 {
1377 return floater_to_close; 1378 return floater_to_close;
1378 } 1379 }
1380
1381 // If floater has as parent root view
1382 // gFloaterView->getParentFloater(floater_to_close) returns
1383 // the same floater_to_close, so we need to check this.
1384 if (prev_floater == floater_to_close)
1385 {
1386 break;
1387 }
1388 prev_floater = floater_to_close;
1379 } 1389 }
1380 1390
1381 return NULL; 1391 return NULL;