From 02ed3e4e8b5e65fb08096f66e676224876c446d0 Mon Sep 17 00:00:00 2001 From: Yeechan Lu Date: Thu, 30 Jan 2014 00:53:51 +0800 Subject: [PATCH] Fix crash on null Action binded to Result --- Wox/ResultItem.xaml.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Wox/ResultItem.xaml.cs b/Wox/ResultItem.xaml.cs index dc29a993fd..17046b0ddd 100644 --- a/Wox/ResultItem.xaml.cs +++ b/Wox/ResultItem.xaml.cs @@ -83,7 +83,9 @@ namespace Wox AddHandler(MouseLeftButtonUpEvent, new RoutedEventHandler((o, e) => { - Result.Action(); + if (Result.Action != null) + Result.Action(); + CommonStorage.Instance.UserSelectedRecords.Add(result); if (!result.DontHideWoxAfterSelect) {