mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-30 14:50:12 +03:00
fix assertion if id is -1
This commit is contained in:
parent
14df47f18e
commit
b86b15a05a
@ -316,6 +316,9 @@ QRegion DockCorona::availableScreenRegion(int id) const
|
||||
|
||||
QRect DockCorona::availableScreenRect(int id) const
|
||||
{
|
||||
if (!m_screenPool->knownIds().contains(id))
|
||||
return {};
|
||||
|
||||
const auto screens = qGuiApp->screens();
|
||||
const QScreen *screen{qGuiApp->primaryScreen()};
|
||||
QString scrName = m_screenPool->connector(id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user