This website works better with JavaScript.
Home
Help
Sign In
linuxaudio
/
new-session-manager
mirror of
https://github.com/linuxaudio/new-session-manager
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
17
Wiki
Activity
Browse Source
Mixer: Fix opening project by relative pathname on commandline.
tags/non-daw-v1.2.0
Jonathan Moore Liles
11 years ago
parent
4bda8db1fd
commit
4c5551ad8e
2 changed files
with
9 additions
and
6 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-3
mixer/src/Mixer.C
+3
-3
mixer/src/Project.C
+ 6
- 3
mixer/src/Mixer.C
View File
@@ -1131,11 +1131,14 @@ Mixer::command_load ( const char *path, const char *display_name )
{
mixer->deactivate();
Project::close();
char *pwd = (char*)malloc( PATH_MAX + 1 );
getcwd( pwd, PATH_MAX );
chdir( path );
load_project_settings();
Project::close(
);
chdir( pwd );
free( pwd
);
if ( Project::open( path ) )
{
+ 3
- 3
mixer/src/Project.C
View File
@@ -272,10 +272,10 @@ Project::open ( const char *name )
else
*_created_on = 0;
set_name( name );
*_path = '\0';
fl_filename_absolute( _path, sizeof( _path ), "." );
getcwd( _path, sizeof( _path ) );
set_name( _path );
_is_open = true;
Write
Preview
Loading…
Cancel
Save