FIXED: configuration's set_default_comment() tried to set non-default comment.
authorChristoph Schwering <schwering@kbsg.rwth-aachen.de>
Wed, 27 Jan 2010 13:31:54 +0000 (14:31 +0100)
committerTim Niemueller <niemueller@kbsg.rwth-aachen.de>
Sun, 31 Jan 2010 16:39:01 +0000 (17:39 +0100)
The reason was a copy&paste mistake that in net_handler.cpp's switch-statement.

Signed-off-by: Tim Niemueller <niemueller@kbsg.rwth-aachen.de>

src/libs/config/net_handler.cpp

index 406dd99..d7647f9 100644 (file)
@@ -464,7 +464,7 @@ ConfigNetworkHandler::loop()
              s = __config->get_default_comment(path);
            }
            size_t s_length = s.length();
-           config_comment_msg_t *r = prepare_string_msg<config_comment_msg_t>(path, (msg->msgid() == MSG_CONFIG_SET_DEFAULT_STRING), s_length);
+           config_comment_msg_t *r = prepare_string_msg<config_comment_msg_t>(path, (msg->msgid() == MSG_CONFIG_SET_DEFAULT_COMMENT), s_length);
            strcpy(r->s, s.c_str());
            __hub->send(msg->clid(), FAWKES_CID_CONFIGMANAGER, MSG_CONFIG_COMMENT_VALUE,
                        r, sizeof(config_comment_msg_t) + s_length);