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;