Fix for Layout Designer

Should fix problem #14.
Didn't tested it yet, but it should work, since the problem is in the adapter and this prevent the adapter from being called in edit mode.