diff options
author | Nick Cao <nickcao@nichi.co> | 2023-10-13 00:39:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-13 00:39:56 -0400 |
commit | 9cbf22c3f42fc91e1cb744a275da414ffd3589af (patch) | |
tree | dbd1f3b2dccff8611813e5ca069fd57ecb2716b9 /pkgs/games | |
parent | 7ba31c7a91e430e22bd1596f9b4dd277c543ed4e (diff) | |
parent | 2de11a7688a9c5eec0b8413cb00e8307a7fea02c (diff) | |
download | nixlib-9cbf22c3f42fc91e1cb744a275da414ffd3589af.tar nixlib-9cbf22c3f42fc91e1cb744a275da414ffd3589af.tar.gz nixlib-9cbf22c3f42fc91e1cb744a275da414ffd3589af.tar.bz2 nixlib-9cbf22c3f42fc91e1cb744a275da414ffd3589af.tar.lz nixlib-9cbf22c3f42fc91e1cb744a275da414ffd3589af.tar.xz nixlib-9cbf22c3f42fc91e1cb744a275da414ffd3589af.tar.zst nixlib-9cbf22c3f42fc91e1cb744a275da414ffd3589af.zip |
Merge pull request #260239 from NickCao/qt6
qt6: 6.5.3 -> 6.6.0
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/prismlauncher/0001-launcher-translations-explicitly-convert-QVector-ite.patch | 36 | ||||
-rw-r--r-- | pkgs/games/prismlauncher/default.nix | 4 |
2 files changed, 39 insertions, 1 deletions
diff --git a/pkgs/games/prismlauncher/0001-launcher-translations-explicitly-convert-QVector-ite.patch b/pkgs/games/prismlauncher/0001-launcher-translations-explicitly-convert-QVector-ite.patch new file mode 100644 index 000000000000..c1e4731d0148 --- /dev/null +++ b/pkgs/games/prismlauncher/0001-launcher-translations-explicitly-convert-QVector-ite.patch @@ -0,0 +1,36 @@ +From c39637720109dd5d97750907c51e9c0fb8f43f0b Mon Sep 17 00:00:00 2001 +From: Nick Cao <nickcao@nichi.co> +Date: Wed, 11 Oct 2023 22:51:23 -0400 +Subject: [PATCH] launcher/translations: explicitly convert QVector iterators + to pointers + +--- + launcher/translations/TranslationsModel.cpp | 5 ++--- + 1 file changed, 2 insertions(+), 3 deletions(-) + +diff --git a/launcher/translations/TranslationsModel.cpp b/launcher/translations/TranslationsModel.cpp +index 2763cca2..64c21dbd 100644 +--- a/launcher/translations/TranslationsModel.cpp ++++ b/launcher/translations/TranslationsModel.cpp +@@ -524,7 +524,7 @@ Language * TranslationsModel::findLanguage(const QString& key) + } + else + { +- return found; ++ return &(*found); + } + } + +@@ -655,8 +655,7 @@ QModelIndex TranslationsModel::selectedIndex() + auto found = findLanguage(d->m_selectedLanguage); + if(found) + { +- // QVector iterator freely converts to pointer to contained type +- return index(found - d->m_languages.begin(), 0, QModelIndex()); ++ return index(found - &(*d->m_languages.begin()), 0, QModelIndex()); + } + return QModelIndex(); + } +-- +2.42.0 + diff --git a/pkgs/games/prismlauncher/default.nix b/pkgs/games/prismlauncher/default.nix index 9f260aaba9d5..2347c8b53ee7 100644 --- a/pkgs/games/prismlauncher/default.nix +++ b/pkgs/games/prismlauncher/default.nix @@ -42,7 +42,9 @@ rec { sha256 = "sha256-RArg60S91YKp1Mt97a5JNfBEOf2cmuX4pK3VAx2WfqM="; }; - patches = lib.optionals stdenv.isDarwin [ + patches = [ + ./0001-launcher-translations-explicitly-convert-QVector-ite.patch + ] ++ lib.optionals stdenv.isDarwin [ # https://github.com/PrismLauncher/PrismLauncher/pull/1452 # These patches allow us to disable the Sparkle updater and cmake bundling # TODO: remove these when updating to 8.0 |