Fixed bug #3597535 by making sure the IniChanged event isn't hooked before the editor is loaded. Also added a log statement in the ini loading code, and added a better try catch.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2409 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2013-01-05 23:14:54 +00:00
parent e64b5bfd9f
commit c352c4061b
2 changed files with 17 additions and 5 deletions

View file

@ -90,9 +90,8 @@ namespace Greenshot {
var thread = new Thread(delegate() {AddDestinations();});
thread.Name = "add destinations";
thread.Start();
IniConfig.IniChanged += new FileSystemEventHandler(ReloadConfiguration);
};
IniConfig.IniChanged += new FileSystemEventHandler(ReloadConfiguration);
// Make sure the editor is placed on the same location as the last editor was on close
WindowDetails thisForm = new WindowDetails(this.Handle);