GNOME Bugzilla – Bug 439894
Compression settings don't propagate?
Last modified: 2007-09-16 11:52:29 UTC
I have a compressed DIA file open; I use the preferences menu on the main toolbox to modify the compression settings, the I modify my diagram and press ctrl-S. The file is not saved in uncompressed form. Then I use save-as and I see that there is another 'compress' checkbox on the FileChooser dialog, at the bottom. It hasn't adopted the value from my settings, which I think perhaps it should have. After all, 'save as' means creating a new file. The compressed file format, for what it's worth, seems to cause problems with LyX. It detects the file format as 'gzip' instead of 'dia'. Still working out what's up with that.
The "compress saved files" preferences setting is for new files. When a file is loaded, it remembers its compressed-ness. Maybe the preferences option should go away entirely, and it should just remember the last choice made in the dialog. I'll have to ponder how to make it the least confusing -- when a user is used to one setting and loads a diagram from somebody else that has the opposite setting, that should not interfere.
Perhaps the pref could be renamed 'Save new files with compression'. And the tick-box in the 'save as' dialog should follow the preference, not the current file status. And there should be some way of finding whether the currently-loaded file is compressed or not (maybe there already is)
2007-09-16 Hans Breuer <hans@breuer.org> * app/preferences.c : move "Compressed saved files" to "Diagram defaults", the setting already beahved like the other defaults. Fixes bug #439894. * app/diagram.c : finally respect diagram defaults again, probably broken with 0.95. Fixes bug #477451