diff options
author | Mark Sims <mark@nanorex.com> | 2008-06-06 01:13:47 +0000 |
---|---|---|
committer | Mark Sims <mark@nanorex.com> | 2008-06-06 01:13:47 +0000 |
commit | 237bda9f748b80624141c0af7bd075fe4d6b4fa6 (patch) | |
tree | 65d89726f5ebd04953d28cad366e6ee8cf24411b | |
parent | 7ff1143f20f897a866b7e70ef0e730b3599803b5 (diff) | |
download | nanoengineer-237bda9f748b80624141c0af7bd075fe4d6b4fa6.tar.gz nanoengineer-237bda9f748b80624141c0af7bd075fe4d6b4fa6.zip |
Minimize Energy dialog is modal as it should be.
-rwxr-xr-x | cad/src/commands/MinimizeEnergy/MinimizeEnergyProp.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cad/src/commands/MinimizeEnergy/MinimizeEnergyProp.py b/cad/src/commands/MinimizeEnergy/MinimizeEnergyProp.py index 514ec5e59..b7422c6de 100755 --- a/cad/src/commands/MinimizeEnergy/MinimizeEnergyProp.py +++ b/cad/src/commands/MinimizeEnergy/MinimizeEnergyProp.py @@ -47,7 +47,8 @@ from widgets.widget_helpers import double_fixup from utilities.debug_prefs import debug_pref, Choice_boolean_False from widgets.prefs_widgets import connect_checkbox_with_boolean_pref -class MinimizeEnergyProp(QDialog, SponsorableMixin, GroupButtonMixin, Ui_MinimizeEnergyPropDialog): +#class MinimizeEnergyProp(QDialog, SponsorableMixin, GroupButtonMixin, Ui_MinimizeEnergyPropDialog): +class MinimizeEnergyProp(QDialog, SponsorableMixin, Ui_MinimizeEnergyPropDialog): cmdname = greenmsg("Minimize Energy: ") # WARNING: self.cmdname might be used by one of the superclasses plain_cmdname = "Minimize Energy" @@ -171,7 +172,7 @@ class MinimizeEnergyProp(QDialog, SponsorableMixin, GroupButtonMixin, Ui_Minimiz self.minimize_selection_enabled = False self.update_widgets() # only the convergence criteria, for A8, plus All/Sel command from self.seltype self.previousParams = self.gather_parameters() # only used in case Cancel wants to restore them; only conv crit for A8 - self.show() + self.exec_() # Show dialog as a modal dialog. def gather_parameters(self): ###e should perhaps include update_data from ruc (not sure it's good) -- but no time for A8 """ |