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 c698828 commit 8bbdaf42fc3da604b4c381a681a98ec8b4d1c1f8
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/app/qgisapp.cpp
@@ -3548,6 +3548,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;
}

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

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

bool QgisApp::loadAnnotationItemsFromProject( const QDomDocument& doc )

0 comments on commit 8bbdaf4

Please sign in to comment.