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'+'>');
|
document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+e+'<\/'+'a'+'>');
|
||||||
// -->
|
// -->
|
||||||
</script><noscript>zityisoft at gmail dot com</noscript><br /></li>
|
</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>
|
</ul>
|
||||||
<h2 id="lamexp-v4.11-2015-04-05" class="unnumbered">LameXP v4.11 [2015-04-05]</h2>
|
<h2 id="lamexp-v4.11-2015-04-05" class="unnumbered">LameXP v4.11 [2015-04-05]</h2>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
* Added Hungarian translation, thanks to Zityi's Translator Team <zityisoft@gmail.com>
|
* 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
|
* 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] ## {-}
|
## LameXP v4.11 [2015-04-05] ## {-}
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
#define VER_LAMEXP_MINOR_LO 2
|
#define VER_LAMEXP_MINOR_LO 2
|
||||||
#define VER_LAMEXP_TYPE Alpha
|
#define VER_LAMEXP_TYPE Alpha
|
||||||
#define VER_LAMEXP_PATCH 1
|
#define VER_LAMEXP_PATCH 1
|
||||||
#define VER_LAMEXP_BUILD 1706
|
#define VER_LAMEXP_BUILD 1708
|
||||||
#define VER_LAMEXP_CONFG 1700
|
#define VER_LAMEXP_CONFG 1700
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -248,14 +248,19 @@ void CueImportDialog::modelChanged(void)
|
|||||||
|
|
||||||
void CueImportDialog::browseButtonClicked(void)
|
void CueImportDialog::browseButtonClicked(void)
|
||||||
{
|
{
|
||||||
QString newOutDir, currentDir = m_outputDir;
|
QString currentDir = QDir::fromNativeSeparators(m_outputDir);
|
||||||
|
while(!QDir(currentDir).exists())
|
||||||
while(QDir(currentDir).exists())
|
|
||||||
{
|
{
|
||||||
int pos = qMax(currentDir.lastIndexOf(QChar('\\')), currentDir.lastIndexOf(QChar('/')));
|
const int pos = currentDir.lastIndexOf(QChar('/'));
|
||||||
if(pos > 0) currentDir.left(pos - 1); else break;
|
if(pos > 2)
|
||||||
|
{
|
||||||
|
currentDir = currentDir.left(pos);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString newOutDir;
|
||||||
if(MUtils::GUI::themes_enabled())
|
if(MUtils::GUI::themes_enabled())
|
||||||
{
|
{
|
||||||
newOutDir = QFileDialog::getExistingDirectory(this, tr("Choose Output Directory"), currentDir);
|
newOutDir = QFileDialog::getExistingDirectory(this, tr("Choose Output Directory"), currentDir);
|
||||||
|
Loading…
Reference in New Issue
Block a user