Skip to content

Commit 0468933

Browse files
committed
Editor: Use the first/primary screen as last resort
1 parent d71e4ec commit 0468933

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/opencs/view/doc/view.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1187,8 +1187,7 @@ QScreen* CSVDoc::View::getWidgetScreen(const QPoint& position)
11871187
}
11881188

11891189
if (screen == nullptr)
1190-
throw std::runtime_error(
1191-
Misc::StringUtils::format("Cannot detect the screen for position [%d, %d]", position.x(), position.y()));
1190+
screen = screens.first();
11921191

11931192
return screen;
11941193
}

0 commit comments

Comments
 (0)