Skip to content

Commit

Permalink
bug #3572330 print preview + save causes crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Rallaz committed Nov 23, 2012
1 parent c7bb78b commit 98c747b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions librecad/src/main/qc_mdiwindow.cpp
Expand Up @@ -439,6 +439,7 @@ bool QC_MDIWindow::slotFileSave(bool &cancelled, bool isAutoSave) {
cancelled = false;

if (document!=NULL) {
document->setGraphicView(graphicView);
if (isAutoSave) {
// Autosave filename is always supposed to be present.
// Autosave does not change the cursor.
Expand Down Expand Up @@ -477,6 +478,7 @@ bool QC_MDIWindow::slotFileSaveAs(bool &cancelled) {
QString fn = dlg.getSaveFile(&t);
if (document!=NULL && !fn.isEmpty()) {
QApplication::setOverrideCursor( QCursor(Qt::WaitCursor) );
document->setGraphicView(graphicView);
ret = document->saveAs(fn, t);
QApplication::restoreOverrideCursor();
} else {
Expand Down

0 comments on commit 98c747b

Please sign in to comment.