[PR #360] [MERGED] CtrlCore: fix internal drag on macOS #341

Closed
opened 2026-05-05 03:46:13 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ultimatepp/ultimatepp/pull/360
Author: @klugier
Created: 1/23/2026
Status: Merged
Merged: 1/24/2026
Merged by: @mirek-fidler

Base: masterHead: klugier/fix-internal-drag-macos


📝 Commits (4)

📊 Changes

1 file changed (+19 additions, -6 deletions)

View changed files

📝 uppsrc/CtrlCore/CocoClip.mm (+19 -6)

📄 Description

It looks like my previous changes fix droping for files from finder, but introduced crash for internal drag. This PR is supposed to fix it. The main problem is that:

[pasteboard clearContents];

can not be called for internal drag, because it is causing crash.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ultimatepp/ultimatepp/pull/360 **Author:** [@klugier](https://github.com/klugier) **Created:** 1/23/2026 **Status:** ✅ Merged **Merged:** 1/24/2026 **Merged by:** [@mirek-fidler](https://github.com/mirek-fidler) **Base:** `master` ← **Head:** `klugier/fix-internal-drag-macos` --- ### 📝 Commits (4) - [`3d47876`](https://github.com/ultimatepp/ultimatepp/commit/3d4787619069cf9c418008e907e1e863a8b4d9e4) CtrlCore: fix internal drag. - [`7b30bd2`](https://github.com/ultimatepp/ultimatepp/commit/7b30bd23f9ae3539a552c0f5b8dcb5003d788916) .cosmetics - [`c761b5a`](https://github.com/ultimatepp/ultimatepp/commit/c761b5a86c46b75853ea6adf47017f84e5522084) .revert to more secure approch. - [`ecc1aa3`](https://github.com/ultimatepp/ultimatepp/commit/ecc1aa33ee22d6f7dbf8730b6e9b8cd4048c67f7) .simplified ### 📊 Changes **1 file changed** (+19 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `uppsrc/CtrlCore/CocoClip.mm` (+19 -6) </details> ### 📄 Description It looks like my previous changes fix droping for files from finder, but introduced crash for internal drag. This PR is supposed to fix it. The main problem is that: ``` [pasteboard clearContents]; ``` can not be called for internal drag, because it is causing crash. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 03:46:13 -06:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/ultimatepp#341
No description provided.