[Bf-blender-cvs] [29550f87484] master: Fix T63383: macOS: Right-clicking the file name on the title bar doesn't work as expected when the path includes a whitespace character

Stefan Werner noreply at git.blender.org
Wed May 29 13:17:37 CEST 2019


Commit: 29550f87484919065e24ecb513ec64b9a978d03f
Author: Stefan Werner
Date:   Wed May 29 13:17:15 2019 +0200
Branches: master
https://developer.blender.org/rB29550f87484919065e24ecb513ec64b9a978d03f

Fix T63383: macOS: Right-clicking the file name on the title bar
doesn't work as expected when the path includes a whitespace character

File path didn't need to be escaped.

===================================================================

M	intern/ghost/intern/GHOST_WindowCocoa.mm

===================================================================

diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm
index fc4ad3dba74..26aa2e8e067 100644
--- a/intern/ghost/intern/GHOST_WindowCocoa.mm
+++ b/intern/ghost/intern/GHOST_WindowCocoa.mm
@@ -686,9 +686,6 @@ void GHOST_WindowCocoa::setTitle(const STR_String &title)
       associatedFileName = [windowTitle substringWithRange:fileStrRange];
       [m_window setTitle:[associatedFileName lastPathComponent]];
 
-      // Blender used file open/save functions converte file names into legal URL ones
-      associatedFileName = [associatedFileName
-          stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
       @try {
         [m_window setRepresentedFilename:associatedFileName];
       }



More information about the Bf-blender-cvs mailing list