KitaThreadView::KitaThreadView(QWidget *parent, const char *name)
: KitaThreadViewBase(parent, name)
, m_access( 0 )
- , m_parent( parent )
, m_popup( 0 )
{
m_threadPart = new KitaHTMLPart(threadFrame);
int divide = total / ( 100 / 5 );
int next = divide;
int prevResNum = m_thread.resNum();
- QProgressDialog * progress = new QProgressDialog( m_parent );
+ QProgressDialog * progress = new QProgressDialog( parentWidget() );
progress->setTotalSteps( static_cast<int>(total * 0.7) );
progress->setLabelText( "Parse DAT file.....");
progress->show();