diff --git a/NEWS.md b/NEWS.md index a1245aab7..7096d56ad 100644 --- a/NEWS.md +++ b/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 diff --git a/src/mkvtoolnix-gui/util/language_display_widget.cpp b/src/mkvtoolnix-gui/util/language_display_widget.cpp index 5a3832e00..370bab07d 100644 --- a/src/mkvtoolnix-gui/util/language_display_widget.cpp +++ b/src/mkvtoolnix-gui/util/language_display_widget.cpp @@ -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; }