Bug 405929 - Spellchecker: dictionary language reset after each "replace"
Summary: Spellchecker: dictionary language reset after each "replace"
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: part (show other bugs)
Version: 18.08.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-27 13:42 UTC by t.schmittlauch
Modified: 2019-09-25 04:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description t.schmittlauch 2019-03-27 13:42:47 UTC
SUMMARY

Whenever replacing a word with the spellchecker dialogue and having chosen another dictionary than the uppermost, the dictionary language selection dropdown menu always is reset to the uppermost language entry.

STEPS TO REPRODUCE
1. Install several hunspell ductionaries (eg. en-us and en-gb-ise)
2. Mis-type some words so that the spellchecker recognises the correct spelling. Examples: borken, ignornat
3. Invoke the spellchecker via Tools -> Spelling -> Spelling
4. Select an entry from the "language" drop-down menu that isn't the upper-most one
5. Let the spellchecker replace the incorrect word with the correct one

OBSERVED RESULT

The language menu entry changes back to the upper-most entry (in my case American English)

EXPECTED RESULT

The language menu entry shall remain as it was before clicking the "Replace" button

SOFTWARE/OS VERSIONS
Linux: NixOS
KDE Plasma Version: 5.13.4
KDE Frameworks Version: 5.49.0
Qt Version: 5.11.3

ADDITIONAL INFORMATION

I first encountered this bug in the Kile LaTeX editor, only to find that it is actually a bug in the Kate editor part.
Comment 1 Ahmad Samir 2019-06-20 10:05:42 UTC
FWIW I couldn't reproduce this with ktexteditor5.58.0 and kate-19.04.2.

Can you still reproduce this issue?
Comment 2 t.schmittlauch 2019-06-20 14:09:48 UTC
(In reply to Ahmad Samir from comment #1)
> FWIW I couldn't reproduce this with ktexteditor5.58.0 and kate-19.04.2.
> 
> Can you still reproduce this issue?

I can still reproduce the issue with kate part 5.58.0 and Kate 19.04.2, the latest version currently packaged in nixpkgs unstable.
If you expect a difference between 19.04.01 and .02 I can also package the latter version and try it.

There might be an additional step needed though: Before clicking the "replace" buttun, change the content of the "Replace with:" text box.

I used the following text:

```
borken
ignornat
we didn't start teh fire, but woh did then?
```

I have the hunspell dictionaries for American Englisch, British Englisch -ise and German installed and used the British one as default.
Comment 3 Ahmad Samir 2019-08-26 12:26:14 UTC
Sorry, I still can't reproduce this issue. Could be something else with your config? Did you try with a new user account?
Comment 4 Bug Janitor Service 2019-09-10 04:33:07 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2019-09-25 04:33:12 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!