]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/dialogs/EditFolderDialog.cpp
Add a default folder icon to the edit folder dialog. https://redmine.stoutner.com...
[PrivacyBrowserPC.git] / src / dialogs / EditFolderDialog.cpp
index cabcf5dce6b838ca3315c5bfcddbf61b5a191447..bae0965f2e16290ba40838c629729a91f0db34f0 100644 (file)
@@ -42,6 +42,7 @@ EditFolderDialog::EditFolderDialog(QWidget *parentWidgetPointer, const int datab
 
     // Get handles for the widgets.
     currentFolderIconRadioButtonPointer = editFolderDialogUi.currentFolderIconRadioButton;
+    defaultFolderIconRadioButtonPointer = editFolderDialogUi.defaultFolderIconRadioButton;
     currentWebsiteFavoriteIconRadioButtonPointer = editFolderDialogUi.currentWebsiteFavoriteIconRadioButton;
     customFolderIconRadioButtonPointer = editFolderDialogUi.customFolderIconRadioButton;
     parentFolderTreeWidgetPointer = editFolderDialogUi.parentFolderTreeWidget;
@@ -152,6 +153,8 @@ void EditFolderDialog::save()
     // Get the favorite icon.
     if (currentFolderIconRadioButtonPointer->isChecked())  // The current folder icon is checked.
         favoriteIcon = currentFolderIconRadioButtonPointer->icon();
+    else if (defaultFolderIconRadioButtonPointer->isChecked())  // The default folder icon is checked.
+        favoriteIcon = defaultFolderIconRadioButtonPointer->icon();
     else if (currentWebsiteFavoriteIconRadioButtonPointer->isChecked())  // The current website favorite icon is checked.
         favoriteIcon = currentWebsiteFavoriteIconRadioButtonPointer->icon();
     else  // The custom favorite icon is checked.