Permalink
Browse files

Fix #1265: ILSpy doesn't decompile .baml file when reloading assembie…

…s - prevent ILSpy from executing decompilation requests with zero tree nodes selected.
  • Loading branch information...
siegfriedpammer committed Oct 10, 2018
1 parent 84fadd2 commit 6da7d8098ec85c352d4e90221763af978b23f278
Showing with 1 addition and 1 deletion.
  1. +1 −1 ILSpy/MainWindow.xaml.cs
View
@@ -773,7 +773,7 @@ void TreeView_SelectionChanged(object sender, SelectionChangedEventArgs e)
void DecompileSelectedNodes(DecompilerTextViewState state = null, bool recordHistory = true)
{
if (ignoreDecompilationRequests)
if (ignoreDecompilationRequests || treeView.SelectedItems.Count == 0)
return;
if (recordHistory) {

0 comments on commit 6da7d80

Please sign in to comment.