Closed
Bug 171317
Opened 23 years ago
Closed 20 years ago
Show Dialog=FALSE doesn't work
Categories
(SeaMonkey :: Installer, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jmd, Assigned: ajschult784)
Details
Attachments
(1 file, 1 obsolete file)
|
6.94 KB,
patch
|
dveditz
:
review+
bryner
:
superreview+
|
Details | Diff | Splinter Review |
I made a installer preprocessor to tweak config.ini before I install a new build
every day for testing. Since I've seen the readme and license a few hundred
times now, I had it do:
-Show Dialog=TRUE
+Show Dialog=FALSE
But both are still shown.
| Assignee | ||
Comment 1•23 years ago
|
||
the "Show Dialog" is correctly parsed and mShowDialog is set properly, but it is
NEVER checked (for any of the dialog windows)
If I add:
if (!mShowDlg)
{
if (aDirection==nsXInstallerDlg::FORWARD_MOVE)
gCtx->Fdlg->Show(aDirection);
else
gCtx->Bdlg->Show(aDirection);
return;
}
to the beginning of a Show function (and make F,B=lwsci) it seems to work as
expected, but spews Gtk-Critical assertions to the terminal.
Updated•23 years ago
|
QA Contact: bugzilla → ktrina
| Assignee | ||
Comment 2•21 years ago
|
||
I would have loved to have nsXXXDlg::Show() just skip on to the next dialog in
this case, but the dialogs actually depend on the installer window being in
whatever state it's usually in. For instance, nsSetupTypeDlg::Show expects
there to be Accept/Decline buttons left over from the license.
Anyway, this patch simply goes through the motions for the welcome and license
dialogs and then goes on to the next dialog.
I'll file a new bug to rework the removal of buttons and such after each
dialog.
Assignee: dveditz+bmo → ajschult
Status: NEW → ASSIGNED
| Assignee | ||
Updated•21 years ago
|
Attachment #144434 -
Flags: review?(dveditz+bmo)
Comment 3•21 years ago
|
||
Comment on attachment 144434 [details] [diff] [review]
patch
r=dveditz
Attachment #144434 -
Flags: review?(dveditz) → review+
| Assignee | ||
Comment 4•21 years ago
|
||
Comment on attachment 144434 [details] [diff] [review]
patch
bug 238149 is fixed... this is easier now.
Attachment #144434 -
Attachment is obsolete: true
| Assignee | ||
Comment 5•21 years ago
|
||
actually, bug 238149 might have gone a bit too far as if you want to go back
over a hidden dialog window, the dialog itself doesn't know where it should go
(forward or backward). But while writing up a patch, I'm wondering if this
makes any sense for anything other than the welcome and license dialogs.
It would work ok for the setup type dialog, but if it hits a problem (low disk
space, delete an old install) what happens? Should it still prompt for whether
to delete the old install, or just pretend that it's in auto mode and plow
ahead? And hiding the custom components dialog seems a bit silly.
| Assignee | ||
Comment 6•21 years ago
|
||
this patch implements comment 5 with the addition of handling the install
dialog.
| Assignee | ||
Updated•21 years ago
|
Attachment #161112 -
Flags: review?(bsmedberg)
Comment 7•21 years ago
|
||
Comment on attachment 161112 [details] [diff] [review]
patch v2
I'm not comfortable reviewing this, I don't know what it does at all.
Attachment #161112 -
Flags: review?(bsmedberg) → review?(dveditz)
Comment 8•21 years ago
|
||
Comment on attachment 161112 [details] [diff] [review]
patch v2
r=dveditz
Attachment #161112 -
Flags: review?(dveditz) → review+
| Assignee | ||
Updated•21 years ago
|
Attachment #161112 -
Flags: superreview?(bryner)
Updated•21 years ago
|
Product: Browser → Seamonkey
Updated•20 years ago
|
Attachment #161112 -
Flags: superreview?(bryner) → superreview+
| Assignee | ||
Comment 9•20 years ago
|
||
fixed
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 10•20 years ago
|
||
Comment on attachment 161112 [details] [diff] [review]
patch v2
>+ if (!mShowDlg)
>+ {
>+ gCtx->ldlg->Show();
>+ return err;
>+ }
>+
Am I missing something? I can't see how this works. SKIP_DIALOG = 0 and
SHOW_DIALOG = 1, so isn't this backwards?
| Assignee | ||
Comment 11•20 years ago
|
||
the code you mentioned is in nsWelcomeDlg. If mShowDlg = (SKIP_DIALOG=0), it
should skip to the LicenseDiaLoG.
Comment 12•20 years ago
|
||
Gotcha. I mis-read the code the first time through.
You need to log in
before you can comment on or make changes to this bug.
Description
•