diff --git a/XenAdmin/Commands/BackupHostCommand.cs b/XenAdmin/Commands/BackupHostCommand.cs index adfc9ab55..44e653f98 100644 --- a/XenAdmin/Commands/BackupHostCommand.cs +++ b/XenAdmin/Commands/BackupHostCommand.cs @@ -80,7 +80,7 @@ namespace XenAdmin.Commands { SaveFileDialog dialog = new SaveFileDialog(); dialog.AddExtension = true; - dialog.Filter = string.Format("{0} (*." + Branding.BACKUP + ")|*." + Branding.BACKUP + "|{1} (*.*)|*.*", Messages.XS_BACKUP_FILES, Messages.ALL_FILES); + dialog.Filter = string.Format("{0} (*.{1})|*.{1}|{2} (*.*)|*.*", Messages.XS_BACKUP_FILES, Branding.BACKUP, Messages.ALL_FILES); dialog.FilterIndex = 0; dialog.RestoreDirectory = true; dialog.DefaultExt = Branding.BACKUP; diff --git a/XenAdmin/Commands/RestoreHostFromBackupCommand.cs b/XenAdmin/Commands/RestoreHostFromBackupCommand.cs index 61d766a07..36e834c74 100644 --- a/XenAdmin/Commands/RestoreHostFromBackupCommand.cs +++ b/XenAdmin/Commands/RestoreHostFromBackupCommand.cs @@ -98,7 +98,7 @@ namespace XenAdmin.Commands oldDir = Directory.GetCurrentDirectory(); OpenFileDialog dialog = new OpenFileDialog(); dialog.AddExtension = true; - dialog.Filter = string.Format("{0} (*." + Branding.BACKUP + ")|*." + Branding.BACKUP + "|{1} (*.*)|*.*", Messages.XS_BACKUP_FILES, Messages.ALL_FILES); + dialog.Filter = string.Format("{0} (*.{1})|*.{1}|{2} (*.*)|*.*", Messages.XS_BACKUP_FILES, Branding.BACKUP, Messages.ALL_FILES); dialog.FilterIndex = 0; dialog.RestoreDirectory = true; dialog.DefaultExt = Branding.BACKUP;