From 6da7d8098ec85c352d4e90221763af978b23f278 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Wed, 10 Oct 2018 13:26:52 +0200 Subject: [PATCH] Fix #1265: ILSpy doesn't decompile .baml file when reloading assembies - prevent ILSpy from executing decompilation requests with zero tree nodes selected. --- ILSpy/MainWindow.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ILSpy/MainWindow.xaml.cs b/ILSpy/MainWindow.xaml.cs index 7cb98f856..98b10fade 100644 --- a/ILSpy/MainWindow.xaml.cs +++ b/ILSpy/MainWindow.xaml.cs @@ -773,7 +773,7 @@ namespace ICSharpCode.ILSpy void DecompileSelectedNodes(DecompilerTextViewState state = null, bool recordHistory = true) { - if (ignoreDecompilationRequests) + if (ignoreDecompilationRequests || treeView.SelectedItems.Count == 0) return; if (recordHistory) {