projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f42b5a
)
* Fixed a bug when the model is empty
author
Sergio Villar Senin
<svillar@igalia.com>
Wed, 18 Apr 2007 10:46:51 +0000
(10:46 +0000)
committer
Sergio Villar Senin
<svillar@igalia.com>
Wed, 18 Apr 2007 10:46:51 +0000
(10:46 +0000)
pmo-trunk-r1582
src/widgets/modest-header-view.c
patch
|
blob
|
history
diff --git
a/src/widgets/modest-header-view.c
b/src/widgets/modest-header-view.c
index
1898172
..
0ad815f
100644
(file)
--- a/
src/widgets/modest-header-view.c
+++ b/
src/widgets/modest-header-view.c
@@
-1149,7
+1149,10
@@
on_focus_in (GtkWidget *self,
GtkTreeIter iter;
GtkTreePath *path;
- gtk_tree_model_get_iter_first (model, &iter);
+ /* Return if the model is empty */
+ if (!gtk_tree_model_get_iter_first (model, &iter))
+ return FALSE;
+
path = gtk_tree_model_get_path (model, &iter);
gtk_tree_selection_select_path (selection, path);
gtk_tree_path_free (path);