Revision: 1408 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1408&view=re... Author: eht16 Date: 2010-05-25 20:04:45 +0000 (Tue, 25 May 2010)
Log Message: ----------- Save dictionary directory only if it is set (patch by Colomban Wendling, thanks).
Modified Paths: -------------- trunk/geany-plugins/spellcheck/ChangeLog trunk/geany-plugins/spellcheck/src/scplugin.c
Modified: trunk/geany-plugins/spellcheck/ChangeLog =================================================================== --- trunk/geany-plugins/spellcheck/ChangeLog 2010-05-25 20:01:45 UTC (rev 1407) +++ trunk/geany-plugins/spellcheck/ChangeLog 2010-05-25 20:04:45 UTC (rev 1408) @@ -2,6 +2,9 @@
* src/speller.c: Fix broken checks when the selected text is only on one line. + * src/scplugin.c: + Save dictionary directory only if it is set + (patch by Colomban Wendling, thanks).
2010-01-01 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/geany-plugins/spellcheck/src/scplugin.c =================================================================== --- trunk/geany-plugins/spellcheck/src/scplugin.c 2010-05-25 20:01:45 UTC (rev 1407) +++ trunk/geany-plugins/spellcheck/src/scplugin.c 2010-05-25 20:04:45 UTC (rev 1408) @@ -122,7 +122,9 @@ sc_info->show_toolbar_item); g_key_file_set_boolean(config, "spellcheck", "show_editor_menu_item", sc_info->show_editor_menu_item); - g_key_file_set_string(config, "spellcheck", "dictionary_dir", sc_info->dictionary_dir); + if (sc_info->dictionary_dir != NULL) + g_key_file_set_string(config, "spellcheck", "dictionary_dir", + sc_info->dictionary_dir);
sc_gui_update_toolbar(); sc_gui_update_menu();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.