mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Do not show progress info when running from unit tests
This commit is contained in:
@@ -76,8 +76,11 @@ ProgressInfo::ProgressInfo(size_t maxProgressValue, const QString& title)
|
||||
{
|
||||
ProgressInfoStatic::start(maxProgressValue, title);
|
||||
|
||||
if (qApp)
|
||||
{
|
||||
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
@@ -86,8 +89,11 @@ ProgressInfo::~ProgressInfo()
|
||||
{
|
||||
ProgressInfoStatic::finished();
|
||||
|
||||
if (qApp)
|
||||
{
|
||||
QApplication::restoreOverrideCursor();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Sets a description of the step currently being executed.
|
||||
|
||||
Reference in New Issue
Block a user