Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
200f061f
Commit
200f061f
authored
13 years ago
by
Tristan Matthews
Browse files
Options
Downloads
Patches
Plain Diff
* #10725: addressbook-config: avoid segfault if addressbook is not found
parent
525e789d
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gnome/src/config/addressbook-config.c
+5
-4
5 additions, 4 deletions
gnome/src/config/addressbook-config.c
with
5 additions
and
4 deletions
gnome/src/config/addressbook-config.c
+
5
−
4
View file @
200f061f
...
...
@@ -219,7 +219,7 @@ addressbook_config_book_active_toggled(
treePath
=
gtk_tree_path_new_from_string
(
path
);
if
(
!
(
model
=
gtk_tree_view_get_model
(
GTK_TREE_VIEW
(
data
))))
{
DEBUG
(
"
Addressbook:
No valid model (%s:%d)"
,
__FILE__
,
__LINE__
);
DEBUG
(
"No valid model (%s:%d)"
,
__FILE__
,
__LINE__
);
return
;
}
...
...
@@ -241,7 +241,8 @@ addressbook_config_book_active_toggled(
book_data
=
addrbook
->
get_book_data_by_uid
(
uid
);
if
(
book_data
==
NULL
)
{
ERROR
(
"Addressbook: Error: Could not find addressbook %s"
,
uid
);
ERROR
(
"Could not find addressbook %s"
,
uid
);
return
;
}
book_data
->
active
=
active
;
...
...
@@ -299,12 +300,12 @@ addressbook_config_fill_book_list()
GSList
*
books_data
=
addrbook
->
get_books_data
(
book_list
);
if
(
!
books_data
)
{
DEBUG
(
"
Addressbook:
No valid books data (%s:%d)"
,
__FILE__
,
__LINE__
);
DEBUG
(
"No valid books data (%s:%d)"
,
__FILE__
,
__LINE__
);
}
// Get model of view and clear it
if
(
!
(
store
=
GTK_LIST_STORE
(
gtk_tree_view_get_model
(
GTK_TREE_VIEW
(
book_tree_view
)))))
{
DEBUG
(
"
Addressbook:
Could not find model from treeview (%s:%d)"
,
__FILE__
,
__LINE__
);
DEBUG
(
"Could not find model from treeview (%s:%d)"
,
__FILE__
,
__LINE__
);
return
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment