[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:23:39 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=3ec947f

The following commit has been merged in the master branch:
commit 3ec947f7c7e3c223497984b47742e3e4a0cc6009
Author: Alin M Elena <alinm.elena at gmail.com>
Date:   Tue Mar 26 18:18:54 2013 +0000

    Sets correctly the default spell language for a new tab
    BUG:  308281
    REVIEW: 109740
---
 lib/chat-widget.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/chat-widget.cpp b/lib/chat-widget.cpp
index 612fb87..8df51c1 100644
--- a/lib/chat-widget.cpp
+++ b/lib/chat-widget.cpp
@@ -55,6 +55,8 @@
 #include <KTp/actions.h>
 #include <KTp/message-processor.h>
 
+#include <sonnet/speller.h>
+
 class ChatWidgetPrivate
 {
 public:
@@ -925,7 +927,7 @@ void ChatWidget::saveSpellCheckingOption()
     QString spellCheckingLanguage = spellDictionary();
     KSharedConfigPtr config = KSharedConfig::openConfig(QLatin1String("ktp-text-uirc"));
     KConfigGroup configGroup = config->group(d->channel->targetId());
-    if (spellCheckingLanguage != KGlobal::locale()->language()) {
+    if (spellCheckingLanguage != Sonnet::Speller().defaultLanguage()) {
         configGroup.writeEntry("language", spellCheckingLanguage);
     } else {
         if (configGroup.exists()) {
@@ -946,7 +948,7 @@ void ChatWidget::loadSpellCheckingOption()
     if (configGroup.exists()) {
         spellCheckingLanguage = configGroup.readEntry("language");
     } else {
-    spellCheckingLanguage = KGlobal::locale()->language();
+	spellCheckingLanguage = Sonnet::Speller().defaultLanguage();
     }
     d->ui.sendMessageBox->setSpellCheckingLanguage(spellCheckingLanguage);
 }

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list