From f497900a888e822b34232bc8a9d3314c84b0bbcc Mon Sep 17 00:00:00 2001 From: "kenneth.skovhede@gmail.com" Date: Wed, 4 Feb 2009 22:47:29 +0000 Subject: [PATCH] Fixed minor errors in the wizard. git-svn-id: https://duplicati.googlecode.com/svn/trunk@79 59da171f-624f-0410-aa54-27559c288bec --- Duplicati/GUI/Wizard pages/Backends/File/FileOptions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Duplicati/GUI/Wizard pages/Backends/File/FileOptions.cs b/Duplicati/GUI/Wizard pages/Backends/File/FileOptions.cs index 41dba069a..3c68afb1b 100644 --- a/Duplicati/GUI/Wizard pages/Backends/File/FileOptions.cs +++ b/Duplicati/GUI/Wizard pages/Backends/File/FileOptions.cs @@ -100,7 +100,7 @@ namespace Duplicati.GUI.Wizard_pages.Backends.File try { - if (System.IO.Directory.GetFileSystemEntries(targetpath).Length > 0 && !((Schedule)m_settings["Schedule"]).Tasks[0].ExistsInDb) + if (System.IO.Directory.GetFileSystemEntries(targetpath).Length > 0 && new WizardSettingsWrapper(m_settings).PrimayAction == WizardSettingsWrapper.MainAction.Add) if (MessageBox.Show(this, "The selected folder is not empty. Do you want to use it anyway?", Application.ProductName, MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning) != DialogResult.Yes) { args.Cancel = true;