]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/commitdiff
Move the new tab actions to the top of the action menu. https://redmine.stoutner...
authorSoren Stoutner <soren@stoutner.com>
Mon, 20 Mar 2023 21:21:00 +0000 (14:21 -0700)
committerSoren Stoutner <soren@stoutner.com>
Mon, 20 Mar 2023 21:21:00 +0000 (14:21 -0700)
doc/index.docbook
src/widgets/PrivacyWebEngineView.cpp

index 7ccb177345a1372c33e38158bb2adb5883f3a724..c519d0e5f81c13ae7f7ea6a4bf937c970f1b711c 100644 (file)
       <para>
         &privacybrowser; is a web browser that respects your privacy.
       </para>
+
+      <para>
+        The only way to prevent data from being abused is to prevent it from being collected in the first place.
+      </para>
     </abstract>
 
     <!-- This is a set of Keywords for indexing by search engines. -->
index bc207cb21c94d5823b832642bb59ac193739a68a..20ae259c96ebd1f4a3310093a4d18f535ad7cba0 100644 (file)
@@ -229,7 +229,19 @@ void PrivacyWebEngineView::contextMenuEvent(QContextMenuEvent *contextMenuEvent)
 
     // Add the open link in new background tab action if the context menu already contains the open link in new window action.
     if (contextMenuActionsList.contains(webEnginePagePointer->action(QWebEnginePage::OpenLinkInNewWindow)))
-        contextMenu->insertAction(webEnginePagePointer->action(QWebEnginePage::OpenLinkInNewWindow), webEnginePagePointer->action(QWebEnginePage::OpenLinkInNewBackgroundTab));
+    {
+        // Move the open in new tab action to the top of the list.
+        contextMenu->insertAction(webEnginePagePointer->action(QWebEnginePage::Back), webEnginePagePointer->action(QWebEnginePage::OpenLinkInNewTab));
+
+        // Add the open link in background tab action below the open in new tab action.
+        contextMenu->insertAction(webEnginePagePointer->action(QWebEnginePage::Back), webEnginePagePointer->action(QWebEnginePage::OpenLinkInNewBackgroundTab));
+
+        // Move the open in new window action below the open in background tab action.
+        contextMenu->insertAction(webEnginePagePointer->action(QWebEnginePage::Back), webEnginePagePointer->action(QWebEnginePage::OpenLinkInNewWindow));
+
+        // Add a separator below the open in new window action.
+        contextMenu->insertSeparator(webEnginePagePointer->action(QWebEnginePage::Back));
+    }
 
     // Display the menu using the location in the context menu event.
     contextMenu->popup(contextMenuEvent->globalPos());