mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
GUI: BCP 47: don't react to mouse clicks on disabled language display widgets
This commit is contained in:
parent
4b88682655
commit
000a17844c
3
NEWS.md
3
NEWS.md
@ -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
|
||||
|
@ -227,7 +227,8 @@ LanguageDisplayWidget::eventFilter(QObject *obj,
|
||||
auto &p = *p_func();
|
||||
|
||||
if ((obj == p.ui->lLanguage) && (ev->type() == QEvent::MouseButtonRelease)) {
|
||||
editLanguage();
|
||||
if (p.ui->lLanguage->isEnabled())
|
||||
editLanguage();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user