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 270605 - Disable account which is default comes as 'organizer' while creating meeting
Disable account which is default comes as 'organizer' while creating meeting
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Calendar
2.0.x (obsolete)
Other All
: Normal minor
: ---
Assigned To: Suman Manjunath
Ximian Connector QA
: 272656 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-12-16 04:46 UTC by Poornima
Modified: 2009-07-23 12:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (2.80 KB, patch)
2007-07-03 13:53 UTC, Milan Crha
needs-work Details | Review
proposed evo patch (4.47 KB, patch)
2007-08-24 07:29 UTC, Milan Crha
committed Details | Review
patch in evolution/calendar/gui/dialogs/*-page.c (7.28 KB, patch)
2007-09-10 05:47 UTC, Suman Manjunath
none Details | Review
patch in evolution/calendar/gui/dialogs/*-page.c (7.96 KB, patch)
2007-10-11 09:45 UTC, Suman Manjunath
rejected Details | Review
patch in evolution/calendar/gui/dialogs/*-page.c (8.64 KB, patch)
2008-01-03 15:10 UTC, Suman Manjunath
committed Details | Review

Description Poornima 2004-12-16 04:46:09 UTC
Please fill in this template when reporting a bug, unless you know what you
are doing.
Description of Problem:


Steps to reproduce the problem:
1.Configured an account test1 exchange account, disbaled it, restarted
evolution. 
2. Configured test2 account.
3. Now click on New ->Meeting, under 'Invitations' tab, u can see diabled
account id in organizer field

Not a general user scenario, so 'Normal' priority is set 
Actual Results:


Expected Results:
Current account which is enabled should come by default

How often does this happen? 
Always

Additional Information:
Comment 1 Gerardo Marin 2004-12-16 20:10:04 UTC
This is quite borderline for not to be "normal"
Comment 2 Sarfraaz Ahmed 2005-01-31 06:23:14 UTC
The fix for #71432 should fix this as well. Closing this bug.
Comment 3 Poornima 2005-02-11 05:31:15 UTC
bug 271432 is fixed and verified but this issue is not yet resolved.
Comment 4 Sarfraaz Ahmed 2005-08-31 09:21:26 UTC
Sounds more like a calendar UI problem ?
Comment 5 Milan Crha 2007-07-03 13:53:36 UTC
Created attachment 91105 [details] [review]
proposed patch

for evolution;

Only one question: Do we need to see there disabled account(s)?
Comment 6 Srinivasa Ragavan 2007-07-06 19:08:34 UTC
Im not sure, what the patch does? Also I think it is fine, if we hide disabled accounts.
Comment 7 Chenthill P 2007-07-08 20:55:47 UTC
It is not good to hide the disabled mail accounts. If the user wants to send using  
a disabled mail account, he will have to reopen a new meeting editor after enabling the account. There can be users who just use evolution for calendaring. 

How about doing the following ?
If the default account is not enabled, select the enabled account. If none of the account are enabled, select the default account and show a warning message saying, "You have selected a disabled account for sending your message, do you want to enable it ?" and open the account preferences based on the response ? [must not be intrusive]
Comment 8 Srinivasa Ragavan 2007-07-09 02:43:38 UTC
Chenthil, Im not sure do we need the disabled accounts to be shown here. Even the composer hides the disabled accounts. 

Comment 9 Srinivasa Ragavan 2007-08-23 16:41:47 UTC
As I have said, and to be consistent with composer, lets not add disabled accounts to the editor at all. That would completely solve the problem, instead of this.
Comment 10 Milan Crha 2007-08-24 07:29:24 UTC
Created attachment 94235 [details] [review]
proposed evo patch

for evolution;

improved one.
Comment 11 Suman Manjunath 2007-08-24 11:05:37 UTC
*** Bug 342935 has been marked as a duplicate of this bug. ***
Comment 12 Chenthill P 2007-09-09 19:40:11 UTC
Reworked the fix as the previous commit made changes in the same area. Fix has been been committed.
Comment 13 Suman Manjunath 2007-09-10 05:47:42 UTC
Created attachment 95243 [details] [review]
patch in evolution/calendar/gui/dialogs/*-page.c

The memo editor would still show disabled accounts.. the patch fixes that issue..

Also, priv->default_address in (event/task/memo)-page.c is used only by the *_page_select_organizer function.. Hence, some code-cleanup..
Comment 14 Suman Manjunath 2007-10-11 09:45:58 UTC
Created attachment 97042 [details] [review]
patch in evolution/calendar/gui/dialogs/*-page.c

The memo editor would still show disabled accounts.. the patch fixes that
issue..

Also, priv->default_address in (event/task/memo)-page.c is used only by the
*_page_select_organizer function.. Hence, some code-cleanup..

Also, the patch fixes this issue: 
1) Open an existing assigned task (preferably a task which has been assigned to you)
2) see the organizer combo-box.. it does not show the correct organizer of the assigned task.. instead it shows a default list [something which should happen only if you are creating a *new* assigned task]
Comment 15 Milan Crha 2007-10-11 16:25:54 UTC
Pity, I reworked same part too, in my patch for bug #439122.
Comment 16 Srinivasa Ragavan 2007-11-05 08:01:55 UTC
Suman, Im rejecting this, as I have approved the other one.If something unique this provides, extract and attach that alone.
Comment 17 Milan Crha 2007-11-05 11:18:04 UTC
Suman, try to look into that bug #439122, if you can/need use something from there, (related to *-page.c source files, because other parts has been fixed already within other bugs, so I will not commit that patch there.

There has been done some changes in the code, so your patch doesn't apply smoothly, so try to attach improved one.
I see these lines unique in your patch:
 if (!priv->user_org) {
 	list = g_list_append (list, string);
	gtk_combo_set_popdown_strings (GTK_COMBO (priv->organizer), list);
	gtk_editable_set_editable (GTK_EDITABLE (GTK_COMBO 
              (priv->organizer)->entry), FALSE);
 }
So these (together with others related) fix this bug.
Comment 18 Milan Crha 2007-11-05 11:22:14 UTC
Suman, please take care about that leak fix I mentioned in that bug.
Comment 19 Suman Manjunath 2008-01-03 15:10:44 UTC
Created attachment 102051 [details] [review]
patch in evolution/calendar/gui/dialogs/*-page.c

(In reply to comment #16)
> Suman, Im rejecting this, as I have approved the other one.If something unique
> this provides, extract and attach that alone.
> 

Resolves issues mentioned in comment #14 + fixes a memory leak (thanks to Milan :-) )

Srini.. the patch applies on SVN trunk.. so it is unique ;-)
Comment 20 Milan Crha 2008-01-04 19:57:39 UTC
The patch looks good to me. Have a quick look Srag, if you wish, but I think we can approve it.
Comment 21 Srinivasa Ragavan 2008-01-05 16:30:42 UTC
Milan, I go by your confidence. Please approve to commit.
Comment 22 Suman Manjunath 2008-01-05 16:48:56 UTC
thanks for the reviews guys.. 

Committed to SVN trunk as r34763
(http://svn.gnome.org/viewvc/evolution?view=revision&revision=34763)
Comment 23 Milan Crha 2009-07-23 10:54:24 UTC
*** Bug 272656 has been marked as a duplicate of this bug. ***