diff options
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | mg_db.c | 8 |
2 files changed, 7 insertions, 2 deletions
@@ -381,3 +381,4 @@ Balke. - updated translations by Ville Skyttä and Diego Pierotto 2009-XX-XX Version 0.2.3 +- last version broke importing from setup menu @@ -1210,11 +1210,15 @@ mgDb::SyncFile(const char *filename) { mgSQLString c_lang(m_TLAN); mgSQLString c_cddbid(getAlbum(filename,c_album,c_artist)); - const char *cwd = mugglepath(); + const char *cwd; + if (the_setup.IsMugglei()) + cwd = mugglepath(); + else + cwd = strdup(""); int tldlen = strlen(the_setup.ToplevelDir); int cwdlen = strlen(cwd); const char *relpath=cwd; - if (cwdlen>tldlen); relpath += tldlen; + if (cwdlen>tldlen) relpath += tldlen; char *b; msprintf(&b,"%s%s",relpath,cfilename); free((void*)cwd); |