Gui: Don't show raw exception to user
This commit is contained in:
committed by
abdullahtahiriyo
parent
b632355691
commit
ec8fe448dc
@@ -1597,7 +1597,7 @@ void ExpLineEdit::setExpression(std::shared_ptr<Expression> expr)
|
||||
QPalette p(palette());
|
||||
p.setColor(QPalette::Active, QPalette::Text, Qt::red);
|
||||
setPalette(p);
|
||||
iconLabel->setToolTip(QString::fromLatin1(e.what()));
|
||||
iconLabel->setToolTip(tr("An error occurred -- see Report View for information"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1664,7 +1664,7 @@ void ExpLineEdit::resizeEvent(QResizeEvent * event)
|
||||
QPalette p(palette());
|
||||
p.setColor(QPalette::Active, QPalette::Text, Qt::red);
|
||||
setPalette(p);
|
||||
iconLabel->setToolTip(QString::fromLatin1(e.what()));
|
||||
iconLabel->setToolTip(tr("An error occurred -- see Report View for information"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user