]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/dialogs/EditFolderDialog.cpp
Focus the bookmark name when adding or editing bookmarks. https://redmine.stoutner...
[PrivacyBrowserPC.git] / src / dialogs / EditFolderDialog.cpp
index eb2bdcf4d4f51212533e0acbb72c9c96a1606986..428544404a49dbb35ef1df1eb1e8b94f409b0dc6 100644 (file)
@@ -93,8 +93,8 @@ EditFolderDialog::EditFolderDialog(const int databaseId, QIcon &currentWebsiteFa
     // 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()));