summaryrefslogtreecommitdiffstats
path: root/kitchensync/src/memberconfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kitchensync/src/memberconfig.cpp')
-rw-r--r--kitchensync/src/memberconfig.cpp11
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"