From e500d771a306a43f66799151ee5e9eb75151db94 Mon Sep 17 00:00:00 2001 From: dave-w1hkj Date: Mon, 23 Jun 2025 03:40:00 -0500 Subject: [PATCH] FLTK 1.4.0 * Fl_Preferences compatibility --- src/utils/status.cxx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/utils/status.cxx b/src/utils/status.cxx index 67307e7..0927bd0 100644 --- a/src/utils/status.cxx +++ b/src/utils/status.cxx @@ -97,7 +97,15 @@ status progStatus = { void status::saveLastState() { +#if FLDIGI_FLTK_API_MINOR < 4 Fl_Preferences flmsgpref(FLMSG_dir.c_str(), "w1hkj.com", PACKAGE_NAME); +#else + Fl_Preferences flmsgpref( + FLMSG_dir.c_str(), + "w1hkj.com", + PACKAGE_TARNAME, + Fl_Preferences::C_LOCALE); +#endif int mX = mainwindow->x(); int mY = mainwindow->y(); @@ -188,7 +196,15 @@ void status::saveLastState() void status::loadLastState() { - Fl_Preferences flmsgpref(FLMSG_dir.c_str(), "w1hkj.com", PACKAGE_NAME); +#if FLDIGI_FLTK_API_MINOR < 4 + Fl_Preferences flmsgpref(FLMSG_dir.c_str(), "w1hkj.com", PACKAGE_NAME); +#else + Fl_Preferences flmsgpref( + FLMSG_dir.c_str(), + "w1hkj.com", + PACKAGE_TARNAME, + Fl_Preferences::C_LOCALE); +#endif if (flmsgpref.entryExists("version")) { int i = 0;