From: sr55 Date: Mon, 20 Apr 2015 18:46:33 +0000 (+0000) Subject: WinGui: Restore the "No Titles Found" dialog from previous versions of HandBrake. X-Git-Tag: 1.0.0~1244 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69a4cf5c8b880bd69be890a043dd3abae31b07bf;p=handbrake WinGui: Restore the "No Titles Found" dialog from previous versions of HandBrake. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7108 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/win/CS/HandBrake.ApplicationServices/Services/Scan/EventArgs/ScanCompletedEventArgs.cs b/win/CS/HandBrake.ApplicationServices/Services/Scan/EventArgs/ScanCompletedEventArgs.cs index 41c44fb76..c23945dd0 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/Scan/EventArgs/ScanCompletedEventArgs.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/Scan/EventArgs/ScanCompletedEventArgs.cs @@ -35,7 +35,7 @@ namespace HandBrake.ApplicationServices.Services.Scan.EventArgs /// public ScanCompletedEventArgs(bool cancelled, Exception exception, string errorInformation, Source scannedSource) { - this.Successful = !cancelled && exception == null && string.IsNullOrEmpty(errorInformation); + this.Successful = !cancelled && exception == null && string.IsNullOrEmpty(errorInformation) && scannedSource != null && scannedSource.Titles != null && scannedSource.Titles.Count > 0; this.Cancelled = cancelled; this.Exception = exception; this.ErrorInformation = errorInformation; diff --git a/win/CS/HandBrakeWPF/Controls/AlertPanel.xaml b/win/CS/HandBrakeWPF/Controls/AlertPanel.xaml new file mode 100644 index 000000000..2960a7292 --- /dev/null +++ b/win/CS/HandBrakeWPF/Controls/AlertPanel.xaml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +