Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/idealist1508/FormCommit'
Browse files Browse the repository at this point in the history
  • Loading branch information
Henk Westhuis committed Jan 6, 2016
2 parents fa94ad6 + b6d4a6f commit 695e696
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions GitUI/SpellChecker/EditNetSpell.cs
Expand Up @@ -268,6 +268,9 @@ private void EditNetSpellLoad(object sender, EventArgs e)

private void LoadDictionary()
{
// Don`t load a dictionary in Design-time
if (Site != null && Site.DesignMode) return;

string dictionaryFile = string.Concat(Path.Combine(AppSettings.GetDictionaryDir(), Settings.Dictionary), ".dic");

if (_wordDictionary == null || _wordDictionary.DictionaryFile != dictionaryFile)
Expand Down Expand Up @@ -1029,6 +1032,8 @@ protected override void Dispose(bool disposing)
{
if (disposing)
{
CancelAutoComplete();
SpellCheckTimer.Stop();
_autoCompleteCancellationTokenSource.Dispose();
_customUnderlines.Dispose();
if (components != null)
Expand Down

0 comments on commit 695e696

Please sign in to comment.