Skip to content
Permalink
Browse files
[BACKPORT] mark project dirty when added or removed composer (fix #3577)
  • Loading branch information
alexbruy committed Dec 10, 2011
1 parent 6280406 commit 9489097323d23f884ebdf3a5ba0826757973c50f
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/app/qgisapp.cpp
@@ -3512,6 +3512,7 @@ QgsComposer* QgisApp::createNewComposer()
emit composerAdded( newComposerObject->view() );
connect( newComposerObject, SIGNAL( composerAdded( QgsComposerView* ) ), this, SIGNAL( composerAdded( QgsComposerView* ) ) );
connect( newComposerObject, SIGNAL( composerWillBeRemoved( QgsComposerView* ) ), this, SIGNAL( composerWillBeRemoved( QgsComposerView* ) ) );
markDirty();
return newComposerObject;
}

@@ -3520,6 +3521,7 @@ void QgisApp::deleteComposer( QgsComposer* c )
emit composerWillBeRemoved( c->view() );
mPrintComposers.remove( c );
mPrintComposersMenu->removeAction( c->windowAction() );
markDirty();
delete c;
}

@@ -3564,6 +3566,7 @@ void QgisApp::deletePrintComposers()
}
mPrintComposers.clear();
mLastComposerId = 0;
markDirty();
}

bool QgisApp::loadAnnotationItemsFromProject( const QDomDocument& doc )

0 comments on commit 9489097

Please sign in to comment.