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 4b358f643c
commit 3c8ee2213f

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;