From 6d2605d4cab2c1aefe9cbfe74cab732f6de449e2 Mon Sep 17 00:00:00 2001 From: nerix Date: Fri, 21 Apr 2023 20:25:33 +0200 Subject: [PATCH] Fix Qt6 crash when dragging rows in table views (#4567) --- CHANGELOG.md | 1 + src/common/SignalVectorModel.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 954de89ce..7b9c94fcb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,7 @@ - Dev: Experimental builds with Qt 6 are now provided. (#4522, #4551, #4553, #4554, #4555, #4556) - Dev: Removed `CHATTERINO_TEST` definitions. (#4526) - Dev: Builds for macOS now have `macos` in their name (previously: `osx`). (#4550) +- Dev: Fixed a crash when dragging rows in table-views in builds with Qt 6. (#4567) ## 2.4.2 diff --git a/src/common/SignalVectorModel.hpp b/src/common/SignalVectorModel.hpp index 8cd5eaf62..b2d9819df 100644 --- a/src/common/SignalVectorModel.hpp +++ b/src/common/SignalVectorModel.hpp @@ -333,7 +333,7 @@ public: if (from != to) { - this->moveRow(this->index(from, to), from, parent, to); + this->moveRow(this->index(from, 0), from, parent, to); } // We return false since we remove items ourselves.