diff --git a/CHANGELOG.md b/CHANGELOG.md index e2cf5081b..0e568dd01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ - Dev: Clarify signal connection lifetimes where applicable. (#4818) - Dev: Laid the groundwork for advanced input completion strategies. (#4639, #4846, #4853) - Dev: Fixed flickering when running with Direct2D on Windows. (#4851) +- Dev: Fix qtkeychain include for Qt6 users. (#4863) - Dev: Add a compile-time flag `CHATTERINO_UPDATER` which can be turned off to disable update checks. (#4854) ## 2.4.6 diff --git a/src/common/Credentials.cpp b/src/common/Credentials.cpp index d3bb5ebbd..c8a8be903 100644 --- a/src/common/Credentials.cpp +++ b/src/common/Credentials.cpp @@ -11,7 +11,11 @@ #ifndef NO_QTKEYCHAIN # ifdef CMAKE_BUILD -# include "qt5keychain/keychain.h" +# if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) +# include "qt6keychain/keychain.h" +# else +# include "qt5keychain/keychain.h" +# endif # else # include "keychain.h" # endif