diff --git a/src/app/dialogs/tools/dialogeditwrongformula.cpp b/src/app/dialogs/tools/dialogeditwrongformula.cpp index 88d1e3bb8..f82e5ef4b 100644 --- a/src/app/dialogs/tools/dialogeditwrongformula.cpp +++ b/src/app/dialogs/tools/dialogeditwrongformula.cpp @@ -51,11 +51,19 @@ DialogEditWrongFormula::DialogEditWrongFormula(const VContainer *data, QWidget * connect(ui->toolButtonEqual, &QPushButton::clicked, this, &DialogEditWrongFormula::EvalFormula); connect(ui->lineEditFormula, &QLineEdit::textChanged, this, &DialogEditWrongFormula::FormulaChanged); + + //Disable Qt::WaitCursor +#ifndef QT_NO_CURSOR + QApplication::restoreOverrideCursor(); +#endif } //--------------------------------------------------------------------------------------------------------------------- DialogEditWrongFormula::~DialogEditWrongFormula() { +#ifndef QT_NO_CURSOR + QApplication::setOverrideCursor(Qt::WaitCursor); +#endif delete ui; } diff --git a/src/app/exception/vexception.cpp b/src/app/exception/vexception.cpp index 5cbc0192c..1812d7337 100644 --- a/src/app/exception/vexception.cpp +++ b/src/app/exception/vexception.cpp @@ -66,6 +66,10 @@ void VException::CriticalMessageBox(const QString &situation, QWidget * parent) QGridLayout* layout = static_cast(msgBox.layout()); Q_CHECK_PTR(layout); layout->addItem(horizontalSpacer, layout->rowCount(), 0, 1, layout->columnCount()); + //Disable Qt::WaitCursor for error message. +#ifndef QT_NO_CURSOR + QApplication::restoreOverrideCursor(); +#endif msgBox.exec(); }