Bug 150397 - While installing an extension using KF5 the license text is selected for no reason
Summary: While installing an extension using KF5 the license text is selected for no r...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.2.7.2 release
Hardware: All All
: lowest trivial
Assignee: Michael Weghorn
URL:
Whiteboard: target:25.2.0
Keywords:
Depends on:
Blocks: KDE, KF5
  Show dependency treegraph
 
Reported: 2022-08-13 13:07 UTC by Rafael Lima
Modified: 2024-08-06 04:53 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot showing the problem (75.58 KB, image/png)
2022-08-13 13:07 UTC, Rafael Lima
Details
Screencast with gen VCL plugin (4.31 MB, video/webm)
2022-08-16 07:29 UTC, Michael Weghorn
Details
Sample program using native Qt edit widgets (671 bytes, text/x-c++src)
2024-08-03 06:02 UTC, Michael Weghorn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Lima 2022-08-13 13:07:47 UTC
Created attachment 181758 [details]
Screenshot showing the problem

When you install an extension via an OXT file using the Kf5 backend, the license screen will have all its text selected.

See attached screenshot for more info.

This only happens in Kf5. It does not happen in gen and gtk3. I also tested in Windows and all is OK. For some reason, this only affects the Kf5 backend.

System info
Version: 7.3.5.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 1:7.3.5-0ubuntu0.22.04.1
Calc: threaded

Also repro
Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 4e2ce2a460458f17ee4360c45a2da2fc4b4d753e
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: threaded
Comment 1 Stéphane Guillou (stragu) 2022-08-13 22:50:59 UTC
Reproduced with:

Version: 7.4.0.2 / LibreOffice Community
Build ID: 1512ce97d7ed39dce3121f7e15651fd8895f950e
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 2 Michael Weghorn 2022-08-16 07:29:02 UTC
Created attachment 181800 [details]
Screencast with gen VCL plugin

(In reply to Rafael Lima from comment #0)
> This only happens in Kf5. It does not happen in gen and gtk3. I also tested
> in Windows and all is OK. For some reason, this only affects the Kf5 backend.

For me, this happens with gen (i.e. SAL_USE_VCLPLUGIN=gen) as well (but not gtk3 or Windows), s. attached screencast.

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: c1446da82b999349e1a09fed3420bd1c38d7b38c
CPU threads: 12; OS: Linux 5.18; UI render: default; VCL: x11
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded
Comment 3 Rafael Lima 2022-08-16 14:33:47 UTC
(In reply to Michael Weghorn from comment #2)
> For me, this happens with gen (i.e. SAL_USE_VCLPLUGIN=gen) as well (but not
> gtk3 or Windows), s. attached screencast.

Indeed you're right. I can confirm the problem affects "gen" as well.
Comment 4 Michael Weghorn 2024-08-02 20:01:27 UTC
Potential fix:
https://gerrit.libreoffice.org/c/core/+/171438
Comment 5 Michael Weghorn 2024-08-03 06:02:37 UTC
Created attachment 195677 [details]
Sample program using native Qt edit widgets

Attached sample program can be used to see how native QLineEdit and QTextEdit behave, mostly meant for discussion on https://gerrit.libreoffice.org/c/core/+/171438
Comment 6 Commit Notification 2024-08-06 04:52:51 UTC
Michael Weghorn committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/d76a932e7b98cfcc955911321116bb396c3cb790

tdf#150397 vcl: Don't select SalInstanceTextView text on focus

It will be available in 25.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.