fix getTitle crash
This commit is contained in:
parent
50b48818a2
commit
a86bc76b9a
2 changed files with 4 additions and 7 deletions
|
|
@ -78,11 +78,8 @@ std::string CHyprXWaylandManager::getTitle(CWindow* pWindow) {
|
|||
} else {
|
||||
return "";
|
||||
}
|
||||
} catch (std::exception& e) {
|
||||
if (e.what())
|
||||
Debug::log(ERR, "Error in getTitle: %s", e.what());
|
||||
else
|
||||
Debug::log(ERR, "Error in getTitle [e.what() nullptr]");
|
||||
} catch (...) {
|
||||
Debug::log(ERR, "Error in getTitle (probably null title)");
|
||||
}
|
||||
|
||||
return "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue