mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-13 19:19:10 +00:00
keep stack trace when rethrowing exception
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Runtime.ExceptionServices;
|
||||
using System.Windows;
|
||||
using System.Windows.Forms;
|
||||
using System.Windows.Threading;
|
||||
@@ -131,7 +132,7 @@ namespace QuickLook
|
||||
DispatcherPriority.Render).Wait();
|
||||
|
||||
if (thrown != null)
|
||||
throw thrown;
|
||||
ExceptionDispatchInfo.Capture(thrown).Throw();
|
||||
}
|
||||
|
||||
private void SetOpenWithButtonAndPath()
|
||||
|
Reference in New Issue
Block a user