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(
|
void WaylandIntegration::showWindowMenu(
|
||||||
not_null<QWidget*> widget,
|
not_null<QWidget*> widget,
|
||||||
const QPoint &point) {
|
const QPoint &point) {
|
||||||
const auto window = widget->windowHandle();
|
const auto window = not_null(widget->windowHandle());
|
||||||
Expects(window != nullptr);
|
|
||||||
|
|
||||||
const auto native = qApp->nativeInterface<QWaylandApplication>();
|
const auto native = qApp->nativeInterface<QWaylandApplication>();
|
||||||
const auto nativeWindow = window->nativeInterface<QWaylandWindow>();
|
const auto nativeWindow = window->nativeInterface<QWaylandWindow>();
|
||||||
if (!native || !nativeWindow) {
|
if (!native || !nativeWindow) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue