aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/folder-browser.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index fbea56c2c6..d04b4e0549 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,8 @@
2001-07-26 Peter Williams <peterw@ximian.com>
+ * folder-browser.c (on_key_press): Make 'q' a toggle, not
+ one-way.
+
* message-list.etspec: Rename "Date" column to "Sent".
2001-07-25 Anna Marie Dirks <anna@ximian.com>
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index f514228df0..76983955dd 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -1544,10 +1544,10 @@ on_key_press (GtkWidget *widget, GdkEventKey *key, gpointer data)
return TRUE;
case 'q':
case 'Q':
- if (fb->preview_shown && fb->uicomp)
+ if (fb->uicomp)
bonobo_ui_component_set_prop (fb->uicomp,
"/commands/ViewPreview",
- "state", "0", NULL);
+ "state", fb->preview_shown ? "0" : "1", NULL);
return TRUE;
}