Commit 47d665f1 authored by Leslie Zhai's avatar Leslie Zhai

Fix "X" button from burning progress window does not work issue.

BUG: 383236
parent d70ef9a8
......@@ -281,14 +281,15 @@ void K3b::JobProgressDialog::showEvent( QShowEvent* e )
void K3b::JobProgressDialog::closeEvent( QCloseEvent* e )
{
if( m_closeButton->isVisible() ) {
QDialog::closeEvent( e );
if (m_closeButton->isVisible()) {
QDialog::closeEvent(e);
k3bappcore->k3bMainWindow()->show();
if( !m_plainCaption.isEmpty() )
k3bappcore->k3bMainWindow()->setPlainCaption( m_plainCaption );
}
else
if (!m_plainCaption.isEmpty())
k3bappcore->k3bMainWindow()->setPlainCaption(m_plainCaption);
accept();
} else
e->ignore();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment