Use not_null for WaylandIntegration::showWindowMenu window handle
This commit is contained in:
parent
9af842571d
commit
dce16a3de2
1 changed files with 1 additions and 3 deletions
|
|
@ -88,9 +88,7 @@ bool WaylandIntegration::xdgDecorationSupported() {
|
|||
void WaylandIntegration::showWindowMenu(
|
||||
not_null<QWidget*> widget,
|
||||
const QPoint &point) {
|
||||
const auto window = widget->windowHandle();
|
||||
Expects(window != nullptr);
|
||||
|
||||
const auto window = not_null(widget->windowHandle());
|
||||
const auto native = qApp->nativeInterface<QWaylandApplication>();
|
||||
const auto nativeWindow = window->nativeInterface<QWaylandWindow>();
|
||||
if (!native || !nativeWindow) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue