Fix QuickPrefs floater sometimes being unmovable if toolbar button gets removed

Ansariel 2015-02-27 13:44:02 +01:00
parent fc971a2c8f
commit 37192dc2d6
2 changed files with 4 additions and 1 deletions

View File

@ -604,6 +604,8 @@ void LLToolBarView::onToolBarButtonRemoved(LLView* button)
FloaterQuickPrefs* quickprefs_floater = LLFloaterReg::getTypedInstance<FloaterQuickPrefs>("quickprefs");
if (quickprefs_floater && quickprefs_floater->isShown())
{
quickprefs_floater->setUseTongue(false);
quickprefs_floater->setDocked(false, false);
quickprefs_floater->setCanDock(false);
LLDockControl* dock_control = quickprefs_floater->getDockControl();
dock_control->setDock(NULL);

View File

@ -1915,7 +1915,8 @@ void FloaterQuickPrefs::dockToToolbarButton()
else
{
setUseTongue(false);
setDockControl(NULL);
setDocked(false, false);
setCanDock(false);
setDockControl(NULL);
}
}