src/documentloader.cpp

changeset 1023
9450ac3cd930
parent 1014
f0a8ecb6a357
child 1063
1f15c52c11f6
equal deleted inserted replaced
1022:a7f8ce5aa858 1023:9450ac3cd930
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()));

mercurial