mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Fix crash in taskbar icon refresher.
Regression was introduced in 3b956c598
.
This commit is contained in:
@@ -646,7 +646,7 @@ int32 MainWindow::screenNameChecksum(const QString &name) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::psRefreshTaskbarIcon() {
|
void MainWindow::psRefreshTaskbarIcon() {
|
||||||
auto refresher = std::unique_ptr<QWidget>(this);
|
auto refresher = std::make_unique<QWidget>(this);
|
||||||
refresher->setWindowFlags(static_cast<Qt::WindowFlags>(Qt::Tool) | Qt::FramelessWindowHint);
|
refresher->setWindowFlags(static_cast<Qt::WindowFlags>(Qt::Tool) | Qt::FramelessWindowHint);
|
||||||
refresher->setGeometry(x() + 1, y() + 1, 1, 1);
|
refresher->setGeometry(x() + 1, y() + 1, 1, 1);
|
||||||
auto palette = refresher->palette();
|
auto palette = refresher->palette();
|
||||||
|
Reference in New Issue
Block a user