aboutsummaryrefslogtreecommitdiff
path: root/src/summaryview.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-12-16 01:52:15 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-12-16 01:52:15 +0000
commit251bd29db5506d1f3fa5ec5a0720912cfd44abf4 (patch)
treedf8f5d8d903c9df07a1343f09f8f76ee441f6b9e /src/summaryview.c
parent3b4ba972e0c6108f2464784b39eeaaf828004f4f (diff)
show description when the quick search entry doesn't have focus.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2390 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/summaryview.c')
-rw-r--r--src/summaryview.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/summaryview.c b/src/summaryview.c
index 5e8551bd..99e46452 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -5342,7 +5342,7 @@ void summary_qsearch(SummaryView *summaryview)
{
QSearchCondType type;
GtkWidget *menuitem;
- const gchar *key;
+ const gchar *key = NULL;
GSList *flt_mlist;
guint selected_msgnum = 0;
guint displayed_msgnum = 0;
@@ -5355,7 +5355,9 @@ void summary_qsearch(SummaryView *summaryview)
if (!summaryview->all_mlist)
return;
- key = gtk_entry_get_text(GTK_ENTRY(summaryview->qsearch->entry));
+ if (summaryview->qsearch->entry_entered)
+ key = gtk_entry_get_text
+ (GTK_ENTRY(summaryview->qsearch->entry));
if (type == QS_ALL && (!key || *key == '\0')) {
summary_qsearch_reset(summaryview);
return;