diff --git a/KelvinDashboardGUI/DapCommandController.cpp b/KelvinDashboardGUI/DapCommandController.cpp index 9777d53da2f56444096228079185edd8bab5af75..f89ad9b552cfd2606559634ea48fb6bff41ffcad 100755 --- a/KelvinDashboardGUI/DapCommandController.cpp +++ b/KelvinDashboardGUI/DapCommandController.cpp @@ -118,7 +118,7 @@ void DapCommandController::processGetWalletInfo() { qInfo() << "processGetWalletInfo()"; DapRpcServiceReply *reply = static_cast<DapRpcServiceReply *>(sender()); - if (!reply || reply->response().result().toVariant().isNull()) { + if (!reply || reply->response().result().toVariant().toStringList().count() <= 0) { qWarning() << "Invalid response received"; return; } diff --git a/KelvinDashboardGUI/KelvinDashboardGUI.pro b/KelvinDashboardGUI/KelvinDashboardGUI.pro index 3c8328bef9ba7a5d4eed6a0dd47382d1c5555f59..1fc8210de0cfbf52537d295afb305b5a49621b8d 100755 --- a/KelvinDashboardGUI/KelvinDashboardGUI.pro +++ b/KelvinDashboardGUI/KelvinDashboardGUI.pro @@ -32,7 +32,7 @@ else { # deprecated API in order to know how to port your code away from it. DEFINES += QT_DEPRECATED_WARNINGS DEFINES += DAP_BRAND=\\\"$$BRAND\\\" -DEFINES += DAP_SERVICE_NAME=\\\"kelvin-dashboard\\\" +DEFINES += DAP_SERVICE_NAME=\\\"KelvinDashboardService\\\" DEFINES += DAP_VERSION=\\\"$$VERSION\\\" ICON = icon.ico # You can also make your code fail to compile if you use deprecated APIs.