Fix exception on shutdown

This commit is contained in:
Flamefire committed 2014-10-24 13:51:29 +02:00
1 parent 8ac2ab9a03
commit 6001f2f47d
1 file changed
+3 -2
+3 -2
View File
@@ -114,9 +114,10 @@ namespace Vocaluxe.Base
public static void Close()
{
if (_CurrentPopupScreen != EPopupScreens.NoPopup)
if (_CurrentPopupScreen != EPopupScreens.NoPopup && _PopupScreens.Count > 0)
_PopupScreens[(int)_CurrentPopupScreen].OnClose();
_Screens[(int)_CurrentScreen].OnClose();
if (_Screens.Count > 0)
_Screens[(int)_CurrentScreen].OnClose();
}
public static void LoadTheme()