summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2013-10-10 19:06:38 +0000
committersr55 <[email protected]>2013-10-10 19:06:38 +0000
commitcc7e61036a71c0390f981221ff03d433634014cc (patch)
tree9e16ccce3db3186dfbb3cef3485e01f94cc96112
parent30bcf3a4c089940df66055e1929e71d3261ed5c5 (diff)
WinGUI: Add a notice for XP users letting them know the app is not currently compatible.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5827 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--win/CS/HandBrakeWPF/App.xaml.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/App.xaml.cs b/win/CS/HandBrakeWPF/App.xaml.cs
index 8ad696d7f..8d76a8dd2 100644
--- a/win/CS/HandBrakeWPF/App.xaml.cs
+++ b/win/CS/HandBrakeWPF/App.xaml.cs
@@ -44,6 +44,14 @@ namespace HandBrakeWPF
/// </param>
protected override void OnStartup(StartupEventArgs e)
{
+ OperatingSystem OS = Environment.OSVersion;
+ if ((OS.Platform == PlatformID.Win32NT) && (OS.Version.Major == 5 && OS.Version.Minor == 1 ))
+ {
+ MessageBox.Show("Windows XP support is currently broken. It is not known if or when it will be fixed.", "Notice", MessageBoxButton.OK, MessageBoxImage.Warning);
+ Application.Current.Shutdown();
+ return;
+ }
+
if (e.Args.Any(f => f.Equals("--instant")))
{
AppArguments.IsInstantHandBrake = true;
@@ -177,8 +185,8 @@ namespace HandBrakeWPF
if (applicationException != null)
{
MessageBox.Show(applicationException.Error + Environment.NewLine + Environment.NewLine + applicationException.Solution, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
- }
- }
+ }
+ }
}
}
catch (Exception)