Fix Qt6 crash when dragging rows in table views (#4567)

This commit is contained in:
nerix 2023-04-21 20:25:33 +02:00 committed by GitHub
parent 6338d09104
commit 6d2605d4ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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.