mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14: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 * )
|
||||
{
|
||||
|
||||
|
||||
definition->hasSound([this](bool has){
|
||||
ui.pronounceButton->setVisible( has );
|
||||
});
|
||||
if( !isVisible() )
|
||||
return;
|
||||
auto pronounceBtn = ui.pronounceButton;
|
||||
definition->hasSound(
|
||||
[ pronounceBtn ]( bool has )
|
||||
{
|
||||
if( pronounceBtn )
|
||||
pronounceBtn->setVisible( has );
|
||||
} );
|
||||
|
||||
updateBackForwardButtons();
|
||||
|
||||
|
|
Loading…
Reference in a new issue