Fixed bug when double clicking on expanded title

After double clicking on an expanded title and then
re-opening the item, it could not be saved.
Merge pull request #179 from fredrikpersson/dblcklickfix

Fixed bug when double clicking on expanded title