Skip to content

Commit

Permalink
Fixed issue #872. Added stopping of rendering and disabling of auto-r…
Browse files Browse the repository at this point in the history
…efresh when Randomizer is opened.
  • Loading branch information
buddhi1980 committed Aug 25, 2021
1 parent bef4c04 commit 776ef44
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mandelbulber2/qt/randomizer_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ cRandomizerDialog::cRandomizerDialog(QWidget *parent)
connect(button, &QToolButton::clicked, this, &cRandomizerDialog::slotClickedSaveButton);
}

gMainInterface->stopRequest = true;
gMainInterface->DisablePeriodicRefresh();

// local copy of parameters
gMainInterface->SynchronizeInterface(gPar, gParFractal, qInterface::read);
*actualParams = *gPar;
Expand Down Expand Up @@ -182,6 +185,7 @@ cRandomizerDialog::cRandomizerDialog(QWidget *parent)

cRandomizerDialog::~cRandomizerDialog()
{
gMainInterface->ReEnablePeriodicRefresh();
delete ui;
}

Expand Down

0 comments on commit 776ef44

Please sign in to comment.