From 0a2adc65fa82ffdf5cfa3f7e669614b5474da42b Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 15 Nov 2014 23:54:52 +0900 Subject: Fixed help handbook sections for Security & Privary -> Crypto. This relates to bug 1850. --- kcontrol/crypto/crypto.cpp | 19 +++++++++++++++++++ kcontrol/crypto/crypto.h | 1 + 2 files changed, 20 insertions(+) (limited to 'kcontrol') diff --git a/kcontrol/crypto/crypto.cpp b/kcontrol/crypto/crypto.cpp index 70344e16a..329c04a31 100644 --- a/kcontrol/crypto/crypto.cpp +++ b/kcontrol/crypto/crypto.cpp @@ -1234,6 +1234,25 @@ void KCryptoConfig::save() emit changed(false); } +TQString KCryptoConfig::handbookSection() const +{ + int index = tabs->currentPageIndex(); + if (index == 0) + return "ssl_tab"; + else if (index == 1) + return "openssl"; + else if (index == 2) + return "your-certificates"; + else if (index == 3) + return "authentication"; + else if (index == 4) + return "peer-ssl-certificates"; + else if (index == 5) + return "ssl-signers"; + else + return TQString::null; +} + void KCryptoConfig::defaults() { load( true ); diff --git a/kcontrol/crypto/crypto.h b/kcontrol/crypto/crypto.h index c94d1f24d..8a353ae04 100644 --- a/kcontrol/crypto/crypto.h +++ b/kcontrol/crypto/crypto.h @@ -226,6 +226,7 @@ public: void load( bool useDefaults ); void save(); void defaults(); + virtual TQString handbookSection() const; #ifdef HAVE_SSL bool loadCiphers(); -- cgit v1.2.3