// Populate the line edits.
folderNameLineEditPointer->setText(bookmarkStructPointer->name);
- // Scroll to the beginning of the line edits.
- folderNameLineEditPointer->setCursorPosition(0);
+ // Focus the folder name line edit.
+ folderNameLineEditPointer->setFocus();
// Connect the buttons.
connect(browseButtonPointer, SIGNAL(clicked()), this, SLOT(browse()));