Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
cac88750
Commit
cac88750
authored
Jun 21, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fixed custom revealInFinder implementation for files stored off the startup volume
parent
ce2b23f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
modules/gui/macosx/MainWindowTitle.m
modules/gui/macosx/MainWindowTitle.m
+12
-2
No files found.
modules/gui/macosx/MainWindowTitle.m
View file @
cac88750
...
@@ -506,8 +506,13 @@
...
@@ -506,8 +506,13 @@
[
currentItem
setImage
:
icon
];
[
currentItem
setImage
:
icon
];
}
}
if
([[
pathComponents
objectAtIndex
:
1
]
isEqualToString
:
@"Users"
])
{
if
([[
pathComponents
objectAtIndex
:
1
]
isEqualToString
:
@"Volumes"
])
{
/* we're on the boot drive, so add it is since it isn't part of the components */
/* we don't want to show the Volumes item, since the Cocoa does it neither */
currentItem
=
[
contextMenu
itemWithTitle
:[[
NSFileManager
defaultManager
]
displayNameAtPath
:
@"/Volumes"
]];
if
(
currentItem
)
[
contextMenu
removeItem
:
currentItem
];
}
else
{
/* we're on the boot drive, so add it since it isn't part of the components */
[
contextMenu
addItemWithTitle
:
[[
NSFileManager
defaultManager
]
displayNameAtPath
:
@"/"
]
action
:
@selector
(
revealInFinder
:
)
keyEquivalent
:
@""
];
[
contextMenu
addItemWithTitle
:
[[
NSFileManager
defaultManager
]
displayNameAtPath
:
@"/"
]
action
:
@selector
(
revealInFinder
:
)
keyEquivalent
:
@""
];
currentItem
=
[
contextMenu
itemAtIndex
:
[
contextMenu
numberOfItems
]
-
1
];
currentItem
=
[
contextMenu
itemAtIndex
:
[
contextMenu
numberOfItems
]
-
1
];
icon
=
[[
NSWorkspace
sharedWorkspace
]
iconForFile
:
@"/"
];
icon
=
[[
NSWorkspace
sharedWorkspace
]
iconForFile
:
@"/"
];
...
@@ -559,6 +564,11 @@
...
@@ -559,6 +564,11 @@
NSMutableString
*
currentPath
;
NSMutableString
*
currentPath
;
currentPath
=
[
NSMutableString
stringWithCapacity
:
1024
];
currentPath
=
[
NSMutableString
stringWithCapacity
:
1024
];
selectedItem
=
count
-
selectedItem
;
selectedItem
=
count
-
selectedItem
;
/* fix for non-startup volumes */
if
([[
pathComponents
objectAtIndex
:
1
]
isEqualToString
:
@"Volumes"
])
selectedItem
+=
1
;
for
(
NSUInteger
y
=
1
;
y
<
selectedItem
;
y
++
)
for
(
NSUInteger
y
=
1
;
y
<
selectedItem
;
y
++
)
[
currentPath
appendFormat
:
@"/%@"
,
[
pathComponents
objectAtIndex
:
y
]];
[
currentPath
appendFormat
:
@"/%@"
,
[
pathComponents
objectAtIndex
:
y
]];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment