Fix 'Open floater in Freeze Time mode'

When the floater was opened in Freeze Time mode, then parent of the
widget that triggers it to open is the 'Floater View'. We do NOT
want to set that MouseOpaque :p. Using getParent here is just
nonsense.
This commit is contained in:
Aleric Inglewood
2013-01-15 03:31:57 +01:00
parent db7b0c1785
commit 0eeea37662

View File

@@ -1688,8 +1688,8 @@ void LLFloaterSnapshot::Impl::freezeTime(bool on)
LLSnapshotLivePreview* previewp = getPreviewView();
if (on)
{
// stop all mouse events at fullscreen preview layer
sInstance->getParent()->setMouseOpaque(TRUE);
// Stop all mouse events at fullscreen preview layer.
gSnapshotFloaterView->setMouseOpaque(TRUE);
// can see and interact with fullscreen preview now
if (previewp)
@@ -1716,7 +1716,8 @@ void LLFloaterSnapshot::Impl::freezeTime(bool on)
}
else // turning off freeze frame mode
{
sInstance->getParent()->setMouseOpaque(FALSE);
gSnapshotFloaterView->setMouseOpaque(FALSE);
if (previewp)
{
previewp->setVisible(FALSE);