Fix crash in taskbar icon refresher.

Regression was introduced in 3b956c598.
This commit is contained in:
John Preston 2018-07-11 23:20:21 +03:00
parent 06c3082fdf
commit e2bc6990c7

View File

@ -646,7 +646,7 @@ int32 MainWindow::screenNameChecksum(const QString &name) const {
}
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->setGeometry(x() + 1, y() + 1, 1, 1);
auto palette = refresher->palette();