Skip to content

Commit

Permalink
[BACKPORT] mark project dirty when added or removed composer (fix #3577)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Dec 10, 2011
1 parent 6280406 commit 9489097
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -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;
}

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

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

bool QgisApp::loadAnnotationItemsFromProject( const QDomDocument& doc )
Expand Down

0 comments on commit 9489097

Please sign in to comment.