Gui: check for QApplication instance to avoid crash
This commit is contained in:
@@ -396,6 +396,10 @@ bool Translator::eventFilter(QObject* obj, QEvent* ev)
|
||||
|
||||
void Translator::enableDecimalPointConversion(bool on)
|
||||
{
|
||||
if (!qApp) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!on) {
|
||||
decimalPointConverter.reset();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user