Fixed minor errors in the wizard.

git-svn-id: https://duplicati.googlecode.com/svn/trunk@79 59da171f-624f-0410-aa54-27559c288bec
This commit is contained in:
kenneth.skovhede@gmail.com
2009-02-04 22:47:29 +00:00
parent 37f95b350c
commit f497900a88
@@ -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;