fix segfault when rightclick on new note

Honestly I have no idea what this code was supposed to do, so I just removed it. If anybody has any idea please let me know.

Btw.: As I don't have any other way of communicating:
- How about opening the bug trackker
- and pushing your branch to master?