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 c698828 commit 8bbdaf4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

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

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

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

0 comments on commit 8bbdaf4

Please sign in to comment.