Continue button fix



Hi,

I enclose a short fix for the broken Continue button in the 
main window. It used to crash balsa when there was no open 
mailbox. Now, it smoothly switches over to the drafts mailbox 
whenever it is needed.

Oh, I have also a wish: would it be possible to have a choice 
of date formats shown in the message list box? I personally 
prefer YYYY-MM-DD hh:mm date format...

Pawel
"Keep it simple, stupid."
Index: src/main-window.c
===================================================================
RCS file: /cvs/gnome/balsa/src/main-window.c,v
retrieving revision 1.242
diff -c -r1.242 main-window.c
*** src/main-window.c	2000/02/29 01:36:12	1.242
--- src/main-window.c	2000/03/03 15:05:14
***************
*** 1224,1232 ****
  {
    BalsaIndex *index;
  
!   index = BALSA_INDEX (balsa_window_find_current_index (BALSA_WINDOW (data)));
!   if (index->mailbox == balsa_app.draftbox)
!       balsa_message_continue (widget, index);
  }
  
  
--- 1224,1234 ----
  {
    BalsaIndex *index;
  
!   index = (BalsaIndex*) balsa_window_find_current_index (BALSA_WINDOW (data));
!   if (index && index->mailbox == balsa_app.draftbox)
!      balsa_message_continue (widget, BALSA_INDEX(index) );
!   else 
!      balsa_window_open_mailbox( BALSA_WINDOW(data), balsa_app.draftbox );
  }
  
  


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]