]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/dialogs/EditBookmarkDialog.cpp
Focus the bookmark name when adding or editing bookmarks. https://redmine.stoutner...
[PrivacyBrowserPC.git] / src / dialogs / EditBookmarkDialog.cpp
index 3a4d770eb740045e4891f8469e11f8110d7df0f8..a0c0c773dbbcf5d1e9e727b33f6d9d00b7162122 100644 (file)
@@ -96,10 +96,12 @@ EditBookmarkDialog::EditBookmarkDialog(const int databaseId, QIcon &currentWebsi
     bookmarkNameLineEditPointer->setText(bookmarkStructPointer->name);
     bookmarkUrlLineEditPointer->setText(bookmarkStructPointer->url);
 
-    // Scroll to the beginning of the line edits.
-    bookmarkNameLineEditPointer->setCursorPosition(0);
+    // Scroll to the beginning of the bookmark URL line edit.
     bookmarkUrlLineEditPointer->setCursorPosition(0);
 
+    // Focus the bookmark name line edit.
+    bookmarkNameLineEditPointer->setFocus();
+
     // Connect the buttons.
     connect(browseButtonPointer, SIGNAL(clicked()), this, SLOT(browse()));
     connect(dialogButtonBoxPointer, SIGNAL(accepted()), this, SLOT(save()));