After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 263207 - Advanced Search "Remove" button should be inactive
Advanced Search "Remove" button should be inactive
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.6.x (obsolete)
Other All
: Normal minor
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[nosip]
: 304535 380283 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-08-17 11:02 UTC by Nirnimesh.
Modified: 2009-01-08 16:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
bug fixes (2.02 KB, patch)
2006-07-14 11:39 UTC, kirutthikaraja
needs-work Details | Review
proposed patch (5.60 KB, patch)
2007-06-12 14:04 UTC, Milan Crha
needs-work Details | Review
proposed patch (5.73 KB, patch)
2007-06-15 07:43 UTC, Milan Crha
needs-work Details | Review
proposed patch (5.70 KB, patch)
2007-06-15 10:02 UTC, Milan Crha
committed Details | Review

Description Nirnimesh. 2004-08-17 11:02:03 UTC
Please fill in this template when reporting a bug, unless you know what you
are doing.
Description of Problem: Advanced Search "Remove" button should be inactive.


Steps to reproduce the problem:
1. Start Evolution
2. Search -> Advanced


Actual Results:
The last remove button in the list should be active, though it does not do
anything.

Expected Results:
The last remove button should get inactive.

How often does this happen? 
Always
Comment 1 André Klapper 2005-02-07 15:10:23 UTC
please also fix bug 257118 and bug 262950 when working on this one, if
possible - it's a bit similar/related. :-)
Comment 2 Rodney Dawes 2005-02-15 20:15:53 UTC
Hrmm. I think it should remove the item, and disable the OK button
maybe. It sucks to have to add something to be able to remove the last
rule in the list, even if you are adding a new rule. It is better to
be able to move the mouse to one spot, and keep clicking the remove
button.
Comment 3 André Klapper 2005-02-15 20:26:43 UTC
dobey: you're right :-)
Comment 4 André Klapper 2005-05-18 10:28:30 UTC
*** Bug 304535 has been marked as a duplicate of this bug. ***
Comment 5 André Klapper 2005-08-06 15:36:36 UTC
changing component to "Mailer" to get rid of the UI component, also reassigning
as discussed with nags... adding UI keyword.
Comment 6 kirutthikaraja 2006-07-14 11:39:11 UTC
Created attachment 68916 [details] [review]
bug fixes

The last Remove button in Advanced Search is made to be inactive
Comment 7 André Klapper 2006-08-21 20:03:39 UTC
applied the patch.
patch does not work if i add a second condition and remove the second condition again - the "remove" button is not greyed out anymore.
so this needs some additional work.

a better approach i guess would be to automatically add already one "if" condition when the dialog gets created - currently the user *always* has to *add* a condition.
Comment 8 Milan Crha 2007-06-12 14:04:16 UTC
Created attachment 89806 [details] [review]
proposed patch

for evolution;
Comment 9 Milan Crha 2007-06-12 14:05:55 UTC
I did it as Rodney suggested in comment #2, so you could remove all rule parts, but then the OK button is disabled.
Comment 10 Srinivasa Ragavan 2007-06-15 06:50:54 UTC
Milan, the patch works perfectly fine. I see that OK is disabled. I think SAVE should also be disabled. I don't see a reason for SAVE to be enabled when OK is disabled :) 

Comment 11 Milan Crha 2007-06-15 07:43:21 UTC
Created attachment 89995 [details] [review]
proposed patch

for evolution;

you have right, this might be better.
Comment 12 Milan Crha 2007-06-15 07:48:15 UTC
btw, as I saw now, when you choose "Date sent", for example, then because of that "validate" calling it claims about not chosen date. Is it good or bad? Maybe it's good, because you could not invoke this message in other way (because OK button is disabled), but it is strange a bit.
Comment 13 Srinivasa Ragavan 2007-06-15 09:02:45 UTC
It is really BAD. The error says that you have to choose a date, but Im about to do that. May be we need to have an alternate path. Too many things to take care :(
Comment 14 Milan Crha 2007-06-15 10:02:21 UTC
Created attachment 90002 [details] [review]
proposed patch

for evolution;

as you mentioned on IRC, I removed that validate from function which enable/disable OK/Save button and do this only based on a count of rules, so it is  working without any error message.
Comment 15 Srinivasa Ragavan 2007-06-17 17:50:21 UTC
Ill commit this.
Comment 16 Srinivasa Ragavan 2007-06-18 04:54:17 UTC
Committed to head.
Comment 17 Milan Crha 2009-01-08 16:17:31 UTC
*** Bug 380283 has been marked as a duplicate of this bug. ***