Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReplyBox sourcename sometimes no longer disappears after sending a reply #691

Closed
sssoleileraaa opened this issue Jan 10, 2020 · 8 comments · Fixed by #688
Closed

ReplyBox sourcename sometimes no longer disappears after sending a reply #691

sssoleileraaa opened this issue Jan 10, 2020 · 8 comments · Fixed by #688
Labels
blocked bug Something isn't working

Comments

@sssoleileraaa
Copy link
Contributor

sssoleileraaa commented Jan 10, 2020

STR

  1. Send a reply
  2. Type in a new reply and see that the source name no longer disappears

Screenshot from 2020-01-09 18-10-23

@redshiftzero edit: This is an intermittent issue

Related but not the same as: #684

@ntoll
Copy link
Contributor

ntoll commented Jan 15, 2020

Hmm.... I cannot reproduce this. Here's what I see when I use Ctrl+Enter:

sd_ctrl_enter

What OS / version of Qt5 are you using?

@rmol
Copy link
Contributor

rmol commented Jan 15, 2020

I was able to reproduce this on Debian. It worked on my first reply -- the placeholder text was cleared -- but after my second reply the text remained as I typed over it. It looks like it depends on whether you attempt the next reply during the conversation refresh. It can eventually correct.

@sssoleileraaa
Copy link
Contributor Author

Also confirmed it's happening in Qubes with python-pyqt5 version 5.11.3+dfsg-1+b3

@ntoll
Copy link
Contributor

ntoll commented Jan 16, 2020

OK... so I thought I had Qubes / sd-workstation set up so I could follow the STR, but then something updated and I've just spent the past 2 hours trying to fix / wait for things to update (have been fixing minor things in meantime). And now Qubes is broken - complains of sys-usb doesn't exist. I admit I've been trying all sorts of commands so I've probably shot myself in the foot. :-( I might try a fresh install of Debian to try to reproduce. Very frustrating. :-/

@redshiftzero redshiftzero changed the title ReplyBox sourcename no longer disappears after Ctrl+Enter ReplyBox sourcename sometimes no longer disappears after sending a reply Jan 16, 2020
@redshiftzero
Copy link
Contributor

So I was able to reproduce this on master just now:

Screen Shot 2020-01-16 at 11 14 03 AM

Heads up that this was not on Qubes and not using Ctrl+enter to send, I've updated the STR as such. As @rmol suggests, it looks to be an intermittent issue, so it's probably due to the conversation view refreshing after reply success. As such, I expect it will probably go away once #660 and #473 are addressed. Let's deprioritize this one for now and then come back if it's still around when #660 and #473 are closed.

@ntoll
Copy link
Contributor

ntoll commented Jan 16, 2020

@redshiftzero hah... you've caught me mid-installation of Debian onto a spare HD. Ack on the de-prioritization given those other tickets / issues being addressed soon. Will still try to reproduce though... ;-)

@ntoll ntoll mentioned this issue Jan 20, 2020
6 tasks
@ntoll
Copy link
Contributor

ntoll commented Jan 22, 2020

OK... I've managed to reliably reproduce this behaviour while testing #688. I've fixed the issue in that branch and closed my initial PR (containing guesswork since I couldn't reproduce the problem) #712.

It turns out that the focus of the text_edit widget was the problem. If I shutdown my securedrop instance and then sent a message, then the DraftReply would fail and focus wouldn't switch to the messages (it remained in the text_edit widget). Ergo, while the placeholder was visible, since you still had focus in the text_edit you could type over the placeholder. The placeholder text was only removed when the text_edit gained focus. The solution was simply to take focus away from text_edit when send_reply in called.

@sssoleileraaa
Copy link
Contributor Author

related bug: #726

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked bug Something isn't working
Projects
None yet
4 participants