mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Editor: Use the first/primary screen as last resort
This commit is contained in:
parent
d71e4ec9f0
commit
04689334c5
1 changed files with 1 additions and 2 deletions
|
@ -1187,8 +1187,7 @@ QScreen* CSVDoc::View::getWidgetScreen(const QPoint& position)
|
|||
}
|
||||
|
||||
if (screen == nullptr)
|
||||
throw std::runtime_error(
|
||||
Misc::StringUtils::format("Cannot detect the screen for position [%d, %d]", position.x(), position.y()));
|
||||
screen = screens.first();
|
||||
|
||||
return screen;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue