Gui: check for QApplication instance to avoid crash

This commit is contained in:
wmayer
2023-05-14 18:49:41 +02:00
committed by wwmayer
parent 8d14cb87da
commit 286b8088d8

View File

@@ -396,6 +396,10 @@ bool Translator::eventFilter(QObject* obj, QEvent* ev)
void Translator::enableDecimalPointConversion(bool on)
{
if (!qApp) {
return;
}
if (!on) {
decimalPointConverter.reset();
return;