Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/utils/screengrabber.cpp b/src/utils/screengrabber.cpp
- index d0d1bec..4fe73b4 100644
- --- a/src/utils/screengrabber.cpp
- +++ b/src/utils/screengrabber.cpp
- @@ -49,13 +49,13 @@ void ScreenGrabber::freeDesktopPortal(bool& ok, QPixmap& res)
- this);
- QEventLoop loop;
- - const auto gotSignal = [&res, &loop](uint status, const QVariantMap& map) {
- + const auto gotSignal = [this, &res, &loop](uint status, const QVariantMap& map) {
- if (status == 0) {
- // Parse this as URI to handle unicode properly
- QUrl uri = map.value("uri").toString();
- QString uriString = uri.toLocalFile();
- res = QPixmap(uriString);
- - res.setDevicePixelRatio(qApp->devicePixelRatio());
- + res.setDevicePixelRatio(res.width() / double(desktopGeometry().width()));
- QFile imgFile(uriString);
- imgFile.remove();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement