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:
+7
-2
@@ -329,7 +329,7 @@ void MainWindow::onMenuPrintPreview()
|
||||
subWindow->show();
|
||||
}
|
||||
catch( const QString &err ) {
|
||||
QMessageBox::critical( this, tr( "Error" ), err );
|
||||
QMessageBox::critical( this, tr( "Error on print preview" ), err );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -339,7 +339,12 @@ void MainWindow::onMenuPrint()
|
||||
if( !cdscene )
|
||||
return;
|
||||
|
||||
QDialogProgress::exec( this, cdscene );
|
||||
try {
|
||||
QDialogProgress::exec( this, cdscene );
|
||||
}
|
||||
catch( const QString &err ) {
|
||||
QMessageBox::critical( this, tr( "Error on print" ), err );
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::onMenuAbout()
|
||||
|
||||
Reference in New Issue
Block a user