mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
This commit is contained in:
@@ -147,20 +147,21 @@ bool RimEclipseResultCase::importGridAndResultMetaData(bool showTimeStepFilter)
|
||||
|
||||
if (showTimeStepFilter)
|
||||
{
|
||||
// Restore cursor as the progress dialog is active
|
||||
QApplication::restoreOverrideCursor();
|
||||
|
||||
caf::PdmUiPropertyViewDialog propertyDialog(nullptr, m_timeStepFilter, "Time Step Filter", "", QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
||||
propertyDialog.resize(QSize(400, 400));
|
||||
|
||||
// Push arrow cursor onto the cursor stack so it takes over from the wait cursor.
|
||||
QApplication::setOverrideCursor(QCursor(Qt::ArrowCursor));
|
||||
// Show GUI to select time steps
|
||||
if (propertyDialog.exec() != QDialog::Accepted)
|
||||
int dialogReturnValue = propertyDialog.exec();
|
||||
// Pop arrow cursor off the cursor stack so that the previous (wait) cursor takes over.
|
||||
QApplication::restoreOverrideCursor();
|
||||
|
||||
if (dialogReturnValue != QDialog::Accepted)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
m_timeStepFilter->updateFilteredTimeStepsFromUi();
|
||||
// Set cursor in wait state to continue display of progress dialog including
|
||||
// wait cursor
|
||||
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
|
||||
}
|
||||
readerEclipseOutput->setFileDataAccess(restartDataAccess.p());
|
||||
readerEclipseOutput->setTimeStepFilter(m_timeStepFilter->filteredTimeSteps());
|
||||
|
||||
Reference in New Issue
Block a user