From 8f33c5235bc260dddbc79114707c2badfdf9aa02 Mon Sep 17 00:00:00 2001 From: Francois Ferrand Date: Wed, 1 May 2013 11:12:53 +0200 Subject: [PATCH] Fix StringField copy. --- src/http/Protocol.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/http/Protocol.cpp b/src/http/Protocol.cpp index efe06299b..f7fb85dc3 100644 --- a/src/http/Protocol.cpp +++ b/src/http/Protocol.cpp @@ -33,7 +33,7 @@ static const char * const STR_SET_LOGIN = "set-login"; static const char * const STR_ASSOCIATE = "associate"; static const char * const STR_TEST_ASSOCIATE = "test-associate"; static const char * const STR_GENERATE_PASSWORD = "generate-password"; -static const char * const STR_VERSION = "1.6.0.0"; +static const char * const STR_VERSION = "1.7.0.0"; }/*namespace KeepassHttpProtocol*/ @@ -497,13 +497,13 @@ StringField::StringField(const QString &key, const QString &value): {} StringField::StringField(const StringField &other): - m_key(other.m_key), m_value(other.m_value) + QObject(NULL), m_key(other.m_key), m_value(other.m_value) {} StringField &StringField::operator =(const StringField &other) { - m_key = m_key; - m_value = m_value; + m_key = other.m_key; + m_value = other.m_value; return *this; }