Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
c45f2055
Commit
c45f2055
authored
Feb 07, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Main: chop separators from music directory
Move call from Mapper.cxx.
parent
027b2063
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Main.cxx
src/Main.cxx
+3
-0
Mapper.cxx
src/Mapper.cxx
+0
-1
No files found.
src/Main.cxx
View file @
c45f2055
...
...
@@ -145,6 +145,9 @@ glue_mapper_init(Error &error)
if
(
music_dir
.
IsNull
())
music_dir
=
GetUserMusicDir
();
if
(
!
music_dir
.
IsNull
())
music_dir
.
ChopSeparators
();
#ifdef ENABLE_DATABASE
if
(
!
music_dir
.
IsNull
())
{
const
auto
music_dir_utf8
=
music_dir
.
ToUTF8
();
...
...
src/Mapper.cxx
View file @
c45f2055
...
...
@@ -92,7 +92,6 @@ mapper_set_music_dir(AllocatedPath &&path)
assert
(
!
path
.
IsNull
());
music_dir_fs
=
std
::
move
(
path
);
music_dir_fs
.
ChopSeparators
();
const
auto
music_dir_utf8
=
music_dir_fs
.
ToUTF8
();
...
...
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