mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 08:21:29 +12:00
Qt: fix crash in progress dialog
This commit is contained in:
parent
a96a8a9db0
commit
dada341d4e
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ progress_dialog::progress_dialog(const QString &labelText, const QString &cancel
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
m_tb_button = std::make_unique<QWinTaskbarButton>();
|
m_tb_button = std::make_unique<QWinTaskbarButton>();
|
||||||
m_tb_button->setWindow(parent->windowHandle());
|
m_tb_button->setWindow(parent ? parent->windowHandle() : windowHandle());
|
||||||
m_tb_progress = m_tb_button->progress();
|
m_tb_progress = m_tb_button->progress();
|
||||||
m_tb_progress->setRange(minimum, maximum);
|
m_tb_progress->setRange(minimum, maximum);
|
||||||
m_tb_progress->setVisible(true);
|
m_tb_progress->setVisible(true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue