Bug 247338 - Sonnet spellchecking dialogue: Cancel action not implemented properly
Summary: Sonnet spellchecking dialogue: Cancel action not implemented properly
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kspell (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: reproducible
Depends on:
Blocks:
 
Reported: 2010-08-11 09:20 UTC by Josef Spillner
Modified: 2012-02-27 11:39 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.8.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Josef Spillner 2010-08-11 09:20:37 UTC
Version:           1.13.5 (using KDE 4.4.5) 
OS:                Linux

When I compose a mail and want to change the spellchecker language, I invoke the Settings->Spellchecker dialogue. The first combobox contains a list of languages. When I change them in the dialogue, the composer window adapts automatically. However, when I click on the Cancel button, the last selected language remains active. Instead, it should switch back to what was the active language before invoking the dialogue to be consistent with the user's expectation regarding Cancel.

Reproducible: Always

Steps to Reproduce:
Install two aspell catalogues, invoke dialogue, switch language, press Cancel, invoke dialogue again.



OS: Linux (x86_64) release 2.6.32-3-amd64
Compiler: cc
Comment 1 Josef Spillner 2010-08-11 09:25:20 UTC
The same issue happens btw. with the actual spellchecker from Extras->Spelling.

Regarding the usability, the dialogue caption should probably also change from "Sonnet setup" to "Spellchecking setup".
Comment 2 Laurent Montel 2010-08-12 09:54:32 UTC
SVN commit 1162582 by mlaurent:

It's right it's better to use "SpellChecking" here not sonnet
CCBUG: 247338


 M  +1 -1      configdialog.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1162582
Comment 3 Christoph Wickert 2010-10-01 23:58:38 UTC
Confirmed with kmail 1.13.5/KDE 4.4.5.

The dialog is even more inconsistent. Changes in the drop down are applied on the fly, this means the both 'Apply' and the 'Cancel' are useless. So there are two options:

1. Apply changes on the fly and only have the OK button
2. Apply changes only when 'Apply' or 'OK' is clicked, the latter would close the dialog, the first not. Clicking 'Cancel' should close the dialog without any changes.

I suggest two use option 2 since it is more KDE'ish.
Comment 4 Christophe Marin 2012-01-08 01:03:44 UTC
Valid in master with the mentioned steps:

- Settings / spellchecker, change the language / hit cancel
- Settings / spellchecker

-> The language wasn't reset
Comment 5 Laurent Montel 2012-02-27 09:12:17 UTC
I confirm it.
Will look at it
Comment 6 Laurent Montel 2012-02-27 10:42:31 UTC
Git commit b138c271eff95afb51d35ecb8e77e14c94822ad1 by Montel Laurent.
Committed on 27/02/2012 at 11:40.
Pushed by mlaurent into branch 'KDE/4.8'.

Fix Bug 247338 - Sonnet spellchecking dialogue: Cancel action not implemented properly

signal languageChanged was emitted all the time when a config was changed in widget.
So it was not as defined in api.
Created a new signal configChanged() better name and keep old signal.
Remove it for KDE5 and clean up this class
(We need to make some work on sonnet for kde 5)

FIXED-IN: 4.8.1

M  +8    -0    kdeui/sonnet/configdialog.cpp
M  +14   -3    kdeui/sonnet/configdialog.h
M  +3    -3    kdeui/widgets/ktextedit.cpp

http://commits.kde.org/kdelibs/b138c271eff95afb51d35ecb8e77e14c94822ad1