dont close unnamed windows

This commit is contained in:
vaxerski 2021-12-25 12:09:17 +01:00
parent 7ce5864a81
commit 9460139071

View file

@ -1894,8 +1894,7 @@ void CWindowManager::doPostCreationChecks(CWindow* pWindow) {
// Check if it has a name // Check if it has a name
const auto NAME = getClassName(window); const auto NAME = getClassName(window);
if (NAME.first == "Error" && NAME.second == "Error") { if (NAME.first == "Error" && NAME.second == "Error") {
closeWindowAllChecks(window); Debug::log(WARN, "Window created but has a class of NULL?");
Debug::log(WARN, "Window created but has a class of NULL. Removing.");
} }
Debug::log(LOG, "Post creation checks ended"); Debug::log(LOG, "Post creation checks ended");