CueSheet Importer: Fixed generation of the initial (suggested) output folder name when the CUE file name ends with one or multiple dots (now really).
This commit is contained in:
parent
d42c8ceaa0
commit
e69391919a
@ -29,7 +29,7 @@
|
|||||||
#define VER_LAMEXP_MINOR_HI 0
|
#define VER_LAMEXP_MINOR_HI 0
|
||||||
#define VER_LAMEXP_MINOR_LO 5
|
#define VER_LAMEXP_MINOR_LO 5
|
||||||
#define VER_LAMEXP_TYPE Alpha
|
#define VER_LAMEXP_TYPE Alpha
|
||||||
#define VER_LAMEXP_PATCH 3
|
#define VER_LAMEXP_PATCH 4
|
||||||
#define VER_LAMEXP_BUILD 1032
|
#define VER_LAMEXP_BUILD 1032
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -176,8 +176,8 @@ int CueImportDialog::exec(void)
|
|||||||
//----------------------//
|
//----------------------//
|
||||||
|
|
||||||
QString baseName = cueFileInfo.completeBaseName().simplified();
|
QString baseName = cueFileInfo.completeBaseName().simplified();
|
||||||
while(m_outputDir.endsWith(".") || m_outputDir.endsWith(" ")) m_outputDir.chop(1);
|
while(baseName.endsWith(".") || baseName.endsWith(" ")) baseName.chop(1);
|
||||||
if(m_outputDir.isEmpty()) baseName = tr("New Folder");
|
if(baseName.isEmpty()) baseName = tr("New Folder");
|
||||||
|
|
||||||
m_outputDir = QString("%1/%2").arg(cueFileInfo.canonicalPath(), baseName);
|
m_outputDir = QString("%1/%2").arg(cueFileInfo.canonicalPath(), baseName);
|
||||||
for(int n = 2; QDir(m_outputDir).exists(); n++)
|
for(int n = 2; QDir(m_outputDir).exists(); n++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user