mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
Fix regression from d5c236f183: should take first audio link from each article
This commit is contained in:
parent
d5c236f183
commit
43427e3958
|
@ -33,6 +33,7 @@ std::string makeAudioLinkScript( std::string const & url,
|
||||||
escaped = ( ch == '\\' );
|
escaped = ( ch == '\\' );
|
||||||
}
|
}
|
||||||
|
|
||||||
return "if ( !gdAudioLinks.first ) { gdAudioLinks.first = " + ref + "; }" +
|
std::string audioLinkForDict = "gdAudioLinks['" + dictionaryId + "']";
|
||||||
"gdAudioLinks['" + dictionaryId + "'] = " + ref + ";";
|
return "gdAudioLinks.first = gdAudioLinks.first || " + ref + ";" +
|
||||||
|
audioLinkForDict + " = " + audioLinkForDict + " || " + ref + ";";
|
||||||
}
|
}
|
||||||
|
|
|
@ -2181,7 +2181,6 @@ void MainWindow::dictsListItemActivated( QListWidgetItem * item )
|
||||||
{
|
{
|
||||||
QString id = item->data( Qt::UserRole ).toString();
|
QString id = item->data( Qt::UserRole ).toString();
|
||||||
getCurrentArticleView()->jumpToDictionary( id );
|
getCurrentArticleView()->jumpToDictionary( id );
|
||||||
updatePronounceAvailability();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::dictsListSelectionChanged()
|
void MainWindow::dictsListSelectionChanged()
|
||||||
|
|
Loading…
Reference in a new issue