Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.53k stars 174 forks source link

"Open link" doesn't work in Qt5 version, after Find-bar is opened #5132

Open pintassilgo opened 1 year ago

pintassilgo commented 1 year ago

When I double click a link, a tooltip [Open link] appears, but clicking it does nothing in Qt5 build. On GTK version it works.

Alexey-T commented 1 year ago

What OS and what desktop do you have ?

pintassilgo commented 1 year ago

openSUSE Tumbleweed, KDE Plasma.

Alexey-T commented 1 year ago

direct link to fpcUpDeluxe program qt5 version from GitHub Releases page

https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/v2.2.0sp/fpcupdeluxe-x86_64-linux-qt5

do you see the same problem? In the ui of this program? It has the About dialog . With clickable link.

Alexey-T commented 1 year ago

now i tested it on my Ubuntu 22. with XFCE desktop. clicking the link - works. sorry, cannot reproduce. again - try the fpcUpDeluxe UI (it has About window with link).

pintassilgo commented 1 year ago

I tried again with other content and it's working. Don't know why it didn't work yesterday. I'll close this for now, if I can reproduce it again I'll come back here.

pintassilgo commented 6 months ago

Right, I think I finally got steps to reproduce.

  1. Open a new document, type/paste http://example.com/.
  2. Double-click it, then [Open link]. It works.
  3. Now press Ctrl+F to open find bar.
  4. Repeat step 2. It doesn't work.

You can close find bar now, it doesn't matter, clicking [Open link] will never work again until you restart Cuda.

For some reason, opening Ctrl+F breaks [Open link] command.

As you know, I use Qt5 version, don't know if it's Qt5-only.

pintassilgo commented 6 months ago

New (probably) required step: you need to be under a Wayland session and launch Cuda Qt5 with QT_QPA_PLATFORM=xcb. Like QT_QPA_PLATFORM=xcb ./cudatext.

I will open issue reporting why I need to set this envvar.

Alexey-T commented 6 months ago

Reproduced in Cud, qt5 version, after Find dlg was opened. Problem is: my URL panel gets OnMouseLeave instead of OnClick! Lazarus bug.

New (probably) required step:

It was not needed for me.

Alexey-T commented 6 months ago

Lazarus bugreport: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40955