Kaydet (Commit) 4d2679ad authored tarafından Enrico Tröger's avatar Enrico Tröger

Fix wrong warning on empty backup directory setting if 'Backup Copy' is not enabled at all.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5551 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 4998d40f
2011-03-02 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* plugins/saveactions.c:
Fix wrong warning on empty backup directory setting if
'Backup Copy' is not enabled at all.
2011-02-22 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/templates.c:
......
......@@ -453,14 +453,17 @@ static void configure_response_cb(GtkDialog *dialog, gint response, G_GNUC_UNUSE
g_key_file_set_integer(config, "backupcopy", "dir_levels", backupcopy_dir_levels);
g_key_file_set_string(config, "backupcopy", "time_fmt", text_time);
setptr(backupcopy_time_fmt, g_strdup(text_time));
if (*text_dir != '\0' && backupcopy_set_backup_dir(text_dir))
if (enable_backupcopy)
{
g_key_file_set_string(config, "backupcopy", "backup_dir", text_dir);
}
else
{
dialogs_show_msgbox(GTK_MESSAGE_ERROR,
_("Backup directory does not exist or is not writable."));
if (NZV(text_dir) && backupcopy_set_backup_dir(text_dir))
{
g_key_file_set_string(config, "backupcopy", "backup_dir", text_dir);
}
else
{
dialogs_show_msgbox(GTK_MESSAGE_ERROR,
_("Backup directory does not exist or is not writable."));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment