Fix issue 6899: Drag and drop designer uses first field after project re...

...load

idx was not properly initialized at project load.