Always emit the project-save signal when writing project file
commite43c8d831445669bd94f960ff289bc1155668cd0
authorJiří Techet <techet@gmail.com>
Mon, 20 Feb 2017 14:53:43 +0000 (20 15:53 +0100)
committerMatthew Brush <mbrush@codebrainz.ca>
Fri, 4 Aug 2017 08:30:21 +0000 (4 01:30 -0700)
tree133e2d3ab86565a0efc2f8c5c89575c04d4cd964
parent180e1da427b4b23478360c720549c4c4e6ec92a7
Always emit the project-save signal when writing project file

For some reason "project-save" isn't emitted when closing project - see
write_config(FALSE) in project_close(). This means that in this case
plugins cannot save their configuration into the config file. This doesn't
even correspond to the documentation of the signal

"Sent when a project is saved (happens when the project is created, the
 properties dialog is closed or Geany is exited)"

as the signal isn't emitted when exiting Geany because at this point Geany
closes the project.

The comment seems to indicate that the reason is that "project-save"
shouldn't be emitted when "project-close" is emitted but I don't see any
reason why.

Bump API so plugins can rely on the changed behavior.
doc/pluginsignals.c
src/project.c