Editor: Use the first/primary screen as last resort

This commit is contained in:
Alexei Kotov 2025-02-18 22:28:54 +03:00
parent d71e4ec9f0
commit 04689334c5

View file

@ -1187,8 +1187,7 @@ QScreen* CSVDoc::View::getWidgetScreen(const QPoint& position)
} }
if (screen == nullptr) if (screen == nullptr)
throw std::runtime_error( screen = screens.first();
Misc::StringUtils::format("Cannot detect the screen for position [%d, %d]", position.x(), position.y()));
return screen; return screen;
} }