diff --git a/src/gui/qt-daemon/application/mainwindow.cpp b/src/gui/qt-daemon/application/mainwindow.cpp index c4f44b7a..d80df78a 100644 --- a/src/gui/qt-daemon/application/mainwindow.cpp +++ b/src/gui/qt-daemon/application/mainwindow.cpp @@ -18,6 +18,7 @@ #define PREPARE_ARG_FROM_JSON(arg_type, var_name) \ arg_type var_name = AUTO_VAL_INIT(var_name); \ view::api_response default_ar = AUTO_VAL_INIT(default_ar); \ + LOG_PRINT_BLUE("[REQUEST]: " << param.toStdString(), LOG_LEVEL_3); \ if (!epee::serialization::load_t_from_json(var_name, param.toStdString())) \ { \ default_ar.error_code = API_RETURN_CODE_BAD_ARG; \ @@ -28,6 +29,7 @@ template QString make_response(const T& r) { std::string str = epee::serialization::store_t_to_json(r); + LOG_PRINT_BLUE("[RESPONSE]: " << str, LOG_LEVEL_3); return str.c_str(); } @@ -549,6 +551,14 @@ void MainWindow::store_pos(bool consider_showed) void MainWindow::restore_pos(bool consider_showed) { TRY_ENTRY(); + if (consider_showed) + { + if (m_config.is_showed) + this->showNormal(); + else + this->showMinimized(); + } + if (m_config.is_maximazed) { this->setWindowState(windowState() | Qt::WindowMaximized); @@ -580,14 +590,6 @@ void MainWindow::restore_pos(bool consider_showed) } } - if (consider_showed) - { - if (m_config.is_showed) - this->showNormal(); - else - this->showMinimized(); - } - CATCH_ENTRY2(void()); } void MainWindow::trayIconActivated(QSystemTrayIcon::ActivationReason reason) diff --git a/src/wallet/wallets_manager.cpp b/src/wallet/wallets_manager.cpp index 34b35b2b..63e06328 100644 --- a/src/wallet/wallets_manager.cpp +++ b/src/wallet/wallets_manager.cpp @@ -1275,6 +1275,8 @@ std::string wallets_manager::get_alias_info_by_name(const std::string& name, cur if (!r) return API_RETURN_CODE_FAIL; + if (res.status == API_RETURN_CODE_NOT_FOUND) + return API_RETURN_CODE_NOT_FOUND; res_details.alias = name; res_details.details = res.alias_details;