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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user