mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-11-16 11:03:55 +01:00
Qt: fix crash in progress dialog
This commit is contained in:
1 parent
a96a8a9db0
commit
dada341d4e
1 file changed
+1
-1
@@ -5,7 +5,7 @@ progress_dialog::progress_dialog(const QString &labelText, const QString &cancel
|
||||
{
|
||||
#ifdef _WIN32
|
||||
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->setRange(minimum, maximum);
|
||||
m_tb_progress->setVisible(true);
|
||||
|
||||
Reference in new issue
Block a user