CursorWrapHelper: Do not crash on Wayland.

According to https://bugs.kde.org/show_bug.cgi?id=437334
the cursor position is not necessarily known on Wayland.
That would trigger the Q_ASSERT_X, so this patch removes
it. This does not solve the problem that we can not wrap
the cursor, but it prevents crashing Okular if using the
debug build on Wayland. You’re reading rectangular text.

BUG: 437334
CCBUG: 439471
remotes/origin/work/schwarzer/update_platform_name
David Hurka 5 years ago committed by Albert Astals Cid
parent 9327fd485d
commit b805603c58
  1. 1
      part/cursorwraphelper.cpp

@ -95,7 +95,6 @@ QScreen *CursorWrapHelper::getScreen()
return screen;
}
}
Q_ASSERT_X(false, "CursorWrapHelper::getScreen()", "Found no screen containing QCursor::pos()");
return nullptr;
}

Loading…
Cancel
Save