fix assertion if id is -1

pull/1/head
Johan Smith Agudelo Rodriguez 8 years ago
parent f6a73d4b69
commit 26756143f1

@ -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…
Cancel
Save