From 38e26ec3aadcfab41492fff2a5b2ad455e0ce3a8 Mon Sep 17 00:00:00 2001
From: Linda Lapinlampi <linda@lindalap.fi>
Date: Sat, 31 Dec 2022 01:14:31 +0000
Subject: [PATCH] ui/aboutdialog: Use Qt::TextBrowserInteraction

There was no desirable reason to have TextSelectableByKeyboard for
links in the "About Doomseeker" window. At worst, this would start a
text selection first on an URI, then pressing the Enter key would close
the window instead of opening the user's mail user agent (MUA). (This
may still occur, but the visual hint of tab selector is now less
suspectible to error and misunderstanding.)

Qt::TextBrowserInteraction defaults to TextSelectableByMouse |
LinksAccessibleByMouse | LinksAccessibleByKeyboard. This commit makes
use of that for the three links in this window, which will behave much
more similarly compared to the fourth IP2C Database URL in the window.

See: #4070
---
 src/core/gui/aboutdialog.ui | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/core/gui/aboutdialog.ui b/src/core/gui/aboutdialog.ui
index a948c900..2da8f0da 100644
--- a/src/core/gui/aboutdialog.ui
+++ b/src/core/gui/aboutdialog.ui
@@ -181,7 +181,7 @@
           <bool>true</bool>
          </property>
          <property name="textInteractionFlags">
-          <set>Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse|Qt::TextBrowserInteraction|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
+          <set>Qt::TextBrowserInteraction</set>
          </property>
         </widget>
        </item>
@@ -252,7 +252,7 @@
             <bool>true</bool>
            </property>
            <property name="textInteractionFlags">
-            <set>Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse|Qt::TextBrowserInteraction|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
+            <set>Qt::TextBrowserInteraction</set>
            </property>
           </widget>
          </item>
@@ -268,7 +268,7 @@
             <bool>true</bool>
            </property>
            <property name="textInteractionFlags">
-            <set>Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse|Qt::TextBrowserInteraction|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
+            <set>Qt::TextBrowserInteraction</set>
            </property>
           </widget>
          </item>
-- 
2.39.0

