77 |
77 |
78 if (isOnForeground()) |
78 if (isOnForeground()) |
79 { |
79 { |
80 // Show a progress dialog if we're loading the main ldDocument.here so we can show progress updates and keep the |
80 // Show a progress dialog if we're loading the main ldDocument.here so we can show progress updates and keep the |
81 // WM posted that we're still here. |
81 // WM posted that we're still here. |
82 m_progressDialog = new OpenProgressDialog (g_win); |
82 m_progressDialog = new OpenProgressDialog(qobject_cast<QWidget*>(parent())); |
83 m_progressDialog->setNumLines (m_lines.size()); |
83 m_progressDialog->setNumLines (m_lines.size()); |
84 m_progressDialog->setModal (true); |
84 m_progressDialog->setModal (true); |
85 m_progressDialog->show(); |
85 m_progressDialog->show(); |
86 connect (this, SIGNAL (workDone()), m_progressDialog, SLOT (accept())); |
86 connect (this, SIGNAL (workDone()), m_progressDialog, SLOT (accept())); |
87 connect (m_progressDialog, SIGNAL (rejected()), this, SLOT (abort())); |
87 connect (m_progressDialog, SIGNAL (rejected()), this, SLOT (abort())); |