mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +00:00
Fix crash when dragging text in WebViews on macOS (#6668)
* Fix crash when dragging text in WebViews on macOS (SoftFever/OrcaSlicer#6608)
This commit is contained in:
@@ -151,6 +151,9 @@ void openFolderForFile(wxString const & file)
|
||||
- (BOOL)performDragOperation2:(id<NSDraggingInfo>)info
|
||||
{
|
||||
NSURL* url = [NSURL URLFromPasteboard:[info draggingPasteboard]];
|
||||
if (!url) {
|
||||
return FALSE;
|
||||
}
|
||||
NSString * path = [url path];
|
||||
url = [NSURL fileURLWithPath: path];
|
||||
[self loadFileURL:url allowingReadAccessToURL:url];
|
||||
|
||||
Reference in New Issue
Block a user