mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34:06 +00:00
fix: access violation
This commit is contained in:
parent
7c30b89336
commit
e8764d322c
14
scanpopup.cc
14
scanpopup.cc
|
@ -1136,11 +1136,15 @@ void ScanPopup::altModePoll()
|
||||||
|
|
||||||
void ScanPopup::pageLoaded( ArticleView * )
|
void ScanPopup::pageLoaded( ArticleView * )
|
||||||
{
|
{
|
||||||
|
if( !isVisible() )
|
||||||
|
return;
|
||||||
definition->hasSound([this](bool has){
|
auto pronounceBtn = ui.pronounceButton;
|
||||||
ui.pronounceButton->setVisible( has );
|
definition->hasSound(
|
||||||
});
|
[ pronounceBtn ]( bool has )
|
||||||
|
{
|
||||||
|
if( pronounceBtn )
|
||||||
|
pronounceBtn->setVisible( has );
|
||||||
|
} );
|
||||||
|
|
||||||
updateBackForwardButtons();
|
updateBackForwardButtons();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue