Skip to content

Commit a6a0bd6

Browse files
committed
fix: titlebar can't drag after close DAboutDialog
There is no need to get dpr based on the window. It causes the window can't get mouse event if using new DAboutDialog(window)). pms:BUG-304097
1 parent 4284bc7 commit a6a0bd6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/widgets/daboutdialog.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,9 +459,7 @@ void DAboutDialog::setProductIcon(const QIcon &icon)
459459
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
460460
d->logoLabel->setPixmap(icon.pixmap(windowHandle(), QSize(128, 128)));
461461
#else
462-
winId(); // TODO: wait for checking
463-
auto window = windowHandle();
464-
d->logoLabel->setPixmap(icon.pixmap(QSize(128, 128), window->screen()->devicePixelRatio()));
462+
d->logoLabel->setPixmap(icon.pixmap(QSize(128, 128), devicePixelRatio()));
465463
#endif
466464
}
467465

0 commit comments

Comments
 (0)