diff --git a/Wox/ViewModel/ResultItemViewModel.cs b/Wox/ViewModel/ResultItemViewModel.cs index 32aac3c430..e7652f1752 100644 --- a/Wox/ViewModel/ResultItemViewModel.cs +++ b/Wox/ViewModel/ResultItemViewModel.cs @@ -103,6 +103,21 @@ namespace Wox.ViewModel #endregion + public override bool Equals(object obj) + { + ResultItemViewModel r = obj as ResultItemViewModel; + if (r != null) + { + var equality = string.Equals(r.Title, Title) && + string.Equals(r.SubTitle, SubTitle); + return equality; + } + else + { + return false; + } + } + public event EventHandler ResultOpened; public event EventHandler ResultActionPanelOpened;