Fixed potential deadlock (infinite loop) in Cue Sheet import dialog when "Browse..." button is clicked.
This commit is contained in:
parent
7f1d9c3b91
commit
3deacf11df
@ -88,7 +88,8 @@ h='gmail.com';a='@';n='z&#x
|
||||
document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+e+'<\/'+'a'+'>');
|
||||
// -->
|
||||
</script><noscript>zityisoft at gmail dot com</noscript><br /></li>
|
||||
<li>Updated ALAC decoder to refalac v1.47 (2015-02-15), based on reference implementation by Apple</li>
|
||||
<li>Updated ALAC decoder to refalac v1.47 (2015-02-15), based on reference implementation by Apple<br /></li>
|
||||
<li>Fixed potential deadlock in Cue Sheet import dialog when "Browse..." button is clicked</li>
|
||||
</ul>
|
||||
<h2 id="lamexp-v4.11-2015-04-05" class="unnumbered">LameXP v4.11 [2015-04-05]</h2>
|
||||
<ul>
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
* Added Hungarian translation, thanks to Zityi's Translator Team <zityisoft@gmail.com>
|
||||
* Updated ALAC decoder to refalac v1.47 (2015-02-15), based on reference implementation by Apple
|
||||
* Fixed potential deadlock in Cue Sheet import dialog when "Browse..." button is clicked
|
||||
|
||||
## LameXP v4.11 [2015-04-05] ## {-}
|
||||
|
||||
|
@ -35,7 +35,7 @@
|
||||
#define VER_LAMEXP_MINOR_LO 2
|
||||
#define VER_LAMEXP_TYPE Alpha
|
||||
#define VER_LAMEXP_PATCH 1
|
||||
#define VER_LAMEXP_BUILD 1706
|
||||
#define VER_LAMEXP_BUILD 1708
|
||||
#define VER_LAMEXP_CONFG 1700
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -248,14 +248,19 @@ void CueImportDialog::modelChanged(void)
|
||||
|
||||
void CueImportDialog::browseButtonClicked(void)
|
||||
{
|
||||
QString newOutDir, currentDir = m_outputDir;
|
||||
|
||||
while(QDir(currentDir).exists())
|
||||
QString currentDir = QDir::fromNativeSeparators(m_outputDir);
|
||||
while(!QDir(currentDir).exists())
|
||||
{
|
||||
int pos = qMax(currentDir.lastIndexOf(QChar('\\')), currentDir.lastIndexOf(QChar('/')));
|
||||
if(pos > 0) currentDir.left(pos - 1); else break;
|
||||
const int pos = currentDir.lastIndexOf(QChar('/'));
|
||||
if(pos > 2)
|
||||
{
|
||||
currentDir = currentDir.left(pos);
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
QString newOutDir;
|
||||
if(MUtils::GUI::themes_enabled())
|
||||
{
|
||||
newOutDir = QFileDialog::getExistingDirectory(this, tr("Choose Output Directory"), currentDir);
|
||||
|
Loading…
Reference in New Issue
Block a user