Hi All,
On 0.20 Linux I have noticed a problem when closing a project, occasionally instead of going back to the files that were open, the project files stay open and become the non-project open file set.
I have only seen it a couple of times and havn't been able to find a way of producing the problem reliably.
Has anyone else seen it or have any ideas?
Cheers Lex
On 05/08/11 02:52, Lex Trotman wrote:
Hi All,
On 0.20 Linux I have noticed a problem when closing a project, occasionally instead of going back to the files that were open, the project files stay open and become the non-project open file set.
I have only seen it a couple of times and havn't been able to find a way of producing the problem reliably.
Has anyone else seen it or have any ideas?
I guess this[1] check is failing. Not sure what that pref does.
[1] http://git.geany.org/geany/tree/src/project.c#n374
Cheers, Matthew Brush
On 8 May 2011 21:08, Matthew Brush mbrush@codebrainz.ca wrote:
On 05/08/11 02:52, Lex Trotman wrote:
Hi All,
On 0.20 Linux I have noticed a problem when closing a project, occasionally instead of going back to the files that were open, the project files stay open and become the non-project open file set.
I have only seen it a couple of times and havn't been able to find a way of producing the problem reliably.
Has anyone else seen it or have any ideas?
I guess this[1] check is failing. Not sure what that pref does.
The preference controls saving the session in the project file, which it always does correctly.
The files close and re-open, like as if the default configuration got overwritten, hmmm, lets see:
configuration_save saves the session files in the standard configuration file, and is called from on_prefs_dialog_response.
So edit prefs while a project is open will overwrite the default configuration file list, lets test it, yep, edit preferences with a project open and bingo!
So configuration_save needs a parameter to tell it to only save the preferences, not the session files.
Cheers Lex
[1] http://git.geany.org/geany/tree/src/project.c#n374
Cheers, Matthew Brush _______________________________________________ Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
On Sun, 8 May 2011 22:00:26 +1000 Lex Trotman elextr@gmail.com wrote:
So edit prefs while a project is open will overwrite the default configuration file list, lets test it, yep, edit preferences with a project open and bingo!
So configuration_save needs a parameter to tell it to only save the preferences, not the session files.
It was discussed several months ago. IIRC, the right thing was to public save_dialog_prefs() as void save_dialog_prefs(void) and call it on Edit -> Prefs -> OK, but not from configuration_save(). This way, you always have the last Edit -> Prefs -> OK set of preferences, instead of the "whatever Geany was exited last" prefs. Should be checked, though, if any dialog pref can be changed outside the Prefs dialog - by a keybinding, menu option etc.