diff --git a/libsearch/data-collecter.cpp b/libsearch/data-collecter.cpp index bcf1ac5..30fd205 100644 --- a/libsearch/data-collecter.cpp +++ b/libsearch/data-collecter.cpp @@ -23,11 +23,11 @@ void DataCollecter::collectLaunchEvent(const QString &plugin, const QString &button) { KCustomProperty *property = new KCustomProperty; - property->key = strdup(plugin.toLocal8Bit().data()); + property->key = strdup(QStringLiteral("pluginName").toLocal8Bit().data()); property->value = strdup(button.toLocal8Bit().data()); KTrackData *node = kdk_dia_data_init(KEVENTSOURCE_DESKTOP,KEVENT_CLICK); kdk_dia_append_custom_property(node,property,1); - kdk_dia_upload_default(node, strdup(QStringLiteral("launch").toLocal8Bit().data()), strdup(plugin.toLocal8Bit().data())); + kdk_dia_upload_default(node, strdup(QStringLiteral("search_plugin_launch_event").toLocal8Bit().data()), strdup(plugin.toLocal8Bit().data())); kdk_dia_data_free(node); free(property->key); free(property->value); diff --git a/libsearch/file-utils.cpp b/libsearch/file-utils.cpp index 679a6c5..9f7c93f 100644 --- a/libsearch/file-utils.cpp +++ b/libsearch/file-utils.cpp @@ -138,7 +138,7 @@ int FileUtils::openFile(QString &path, bool openInDir) "ShowItems"); message.setArguments({list, "ukui-search"}); QDBusMessage messageRes = QDBusConnection::sessionBus().call(message); - if (QDBusMessage::ReplyMessage == messageRes.ReplyMessage) { + if (QDBusMessage::ReplyMessage == messageRes.type()) { res = 0; } else { qDebug() << "Error! QDBusMessage reply error! ReplyMessage:" << messageRes.ReplyMessage;