GUI: BCP 47: don't react to mouse clicks on disabled language display widgets

This commit is contained in:
Moritz Bunkus 2020-09-22 10:00:45 +02:00
parent 4b88682655
commit 000a17844c
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85
2 changed files with 5 additions and 1 deletions

View File

@ -34,6 +34,9 @@
* mkvmerge: DTS reader: fixed handling of buffers with an odd length when
byte-swapped DTS is detected so that mkvmerge doesn't abort with a failed
assertion. Found by fuzzying.
* MKVToolNix GIU: IETF BCP 47/RFC 5646 language tags: the GUI will no longer
open the language dialog when clicking on a disabled language display
widget.
# Version 50.0.0 "Awakenings" 2020-09-06

View File

@ -227,6 +227,7 @@ LanguageDisplayWidget::eventFilter(QObject *obj,
auto &p = *p_func();
if ((obj == p.ui->lLanguage) && (ev->type() == QEvent::MouseButtonRelease)) {
if (p.ui->lLanguage->isEnabled())
editLanguage();
return true;
}