diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-07 22:30:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-07 22:30:29 +0000 |
commit | d8b40941f9d1a221add0b9094eb09405a91a8aab (patch) | |
tree | 0b8e9b6347f6e75925bb3c386a47c5300b1a4775 /kitchensync/src/memberconfig.cpp | |
parent | 009631d0fc83f471d6c515e2a5001337a5a2ea21 (diff) | |
download | tdepim-d8b40941f9d1a221add0b9094eb09405a91a8aab.tar.gz tdepim-d8b40941f9d1a221add0b9094eb09405a91a8aab.zip |
Part 2/2 of Chakra patch commit
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1172727 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kitchensync/src/memberconfig.cpp')
-rw-r--r-- | kitchensync/src/memberconfig.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/kitchensync/src/memberconfig.cpp b/kitchensync/src/memberconfig.cpp index 37755a504..d3d08a63b 100644 --- a/kitchensync/src/memberconfig.cpp +++ b/kitchensync/src/memberconfig.cpp @@ -23,6 +23,8 @@ #include "configgui.h" #include "memberinfo.h" +#include <libqopensync/result.h> + #include <klocale.h> #include <kmessagebox.h> @@ -67,13 +69,16 @@ void MemberConfig::saveData() if ( txt.isEmpty() ) { KMessageBox::sorry( this, i18n("Configuration of %1 is empty.").arg( mMember.pluginName() ) ); } else { - TQByteArray cfg = txt.utf8(); - cfg.truncate(cfg.size() - 1); /* discard NUL terminator */ - mMember.setConfiguration( cfg ); + mMember.setConfiguration( txt.utf8() ); mMember.setName( mGui->instanceName() ); // TODO: Check for save() error. mMember.save(); } } +QSync::Member MemberConfig::member() const +{ + return mMember; +} + #include "memberconfig.moc" |