error handling improved
git-svn-id: https://svn.code.sf.net/p/qlscribe/svn/trunk@92 cac9541e-1b8d-4bfa-827e-589bba606050
This commit is contained in:
@@ -68,7 +68,6 @@ bool QDialogProgress::exec( QWidget *parent, QCDScene *scene )
|
||||
if( !drive )
|
||||
return false;
|
||||
|
||||
QLightScribe *scribe = QLightScribe::instance();
|
||||
QDialogProgress dialog( parent, drive );
|
||||
dialog.setWindowTitle( tr( "Printing: " ) + scene->name() );
|
||||
|
||||
@@ -111,7 +110,7 @@ void QDialogProgress::onLabelProgress( int current, int final )
|
||||
|
||||
if( current && final / double( current ) < 10.0 ) {
|
||||
int elapsed = m_start->elapsed();
|
||||
int estimate = double( elapsed ) / current * final;
|
||||
int estimate = int( double( elapsed ) / current * final );
|
||||
m_ui->timeEstimated->setTime( QTime().addMSecs( estimate ) );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user