From bd51ed64b72ea380209a10d78dfb2a4c0eb4131d Mon Sep 17 00:00:00 2001 From: BPanther Date: Fri, 15 Oct 2021 14:55:29 +0200 Subject: [PATCH] fix variables Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/6be5ef866ff79b3ca4daeb7a18e202f4fc2f18b4 Author: BPanther Date: 2021-10-15 (Fri, 15 Oct 2021) --- src/neutrino.cpp | 4 ++-- src/system/settings.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 5838d59d3..15702722f 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -1175,7 +1175,7 @@ int CNeutrinoApp::loadSetup(const char *fname) sprintf(cfg_key, "quadpip_channel_window_%d", i); g_settings.quadpip_channel_window[i] = configfile.getString(cfg_key, "-"); sprintf(cfg_key, "quadpip_channel_id_window_%d", i); - g_settings.quadpip_channel_id_window[i] = configfile.getInt32(cfg_key, 0); + g_settings.quadpip_channel_id_window[i] = configfile.getInt64(cfg_key, 0); } #endif @@ -2189,7 +2189,7 @@ void CNeutrinoApp::saveSetup(const char *fname) std::string qp = "quadpip_channel_window_" + to_string(i); configfile.setString(qp, g_settings.quadpip_channel_window[i]); qp = "quadpip_channel_id_window_" + to_string(i); - configfile.setInt32(qp, g_settings.quadpip_channel_id_window[i]); + configfile.setInt64(qp, g_settings.quadpip_channel_id_window[i]); } #endif diff --git a/src/system/settings.h b/src/system/settings.h index b8865cbed..e348f257b 100644 --- a/src/system/settings.h +++ b/src/system/settings.h @@ -960,7 +960,7 @@ struct SNeutrinoSettings #if ENABLE_PIP && ENABLE_QUADPIP std::string quadpip_channel_window[4]; - int quadpip_channel_id_window[4]; + t_channel_id quadpip_channel_id_window[4]; #endif // pictureviewer