Index: src/common/paws/pawsyesnobox.cpp =================================================================== --- src/common/paws/pawsyesnobox.cpp (revision 5590) +++ src/common/paws/pawsyesnobox.cpp (working copy) @@ -67,7 +67,7 @@ pawsWidget::Hide(); useCustomIDs = false; - if(PawsManager::GetSingleton().GetCurrentFocusedWidget() == this) + if(PawsManager::GetSingleton().GetModalWidget() == this) PawsManager::GetSingleton().SetModalWidget( 0 ); // Reset the ID's back to defaults Index: src/common/paws/pawsmanager.h =================================================================== --- src/common/paws/pawsmanager.h (revision 5590) +++ src/common/paws/pawsmanager.h (working copy) @@ -194,6 +194,9 @@ /// Returns true if the current focused widget needs to override all controls bool GetFocusOverridesControls() { return focusOverridesControls; } + + /// Returns modal widget + pawsWidget* GetModalWidget() { return modalWidget; } /** @brief Give this widget focus. * @param widget The widget to focus.