diff options
author | Wu Xiaotian <[email protected]> | 2019-05-09 12:28:49 +0800 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2019-05-09 15:10:37 -0400 |
commit | 30aeb4c5f787e54525ac287b56ddbd20ca5aaccc (patch) | |
tree | a08d37dd388f416e9eaf48f0784302a90008aaff /capplet | |
parent | 16fe21a84ea333db67e9f0509d619f8d3fee1443 (diff) | |
download | mate-session-manager-30aeb4c5f787e54525ac287b56ddbd20ca5aaccc.tar.bz2 mate-session-manager-30aeb4c5f787e54525ac287b56ddbd20ca5aaccc.tar.xz |
Don't add apps repeatedly
Diffstat (limited to 'capplet')
-rw-r--r-- | capplet/gsm-properties-dialog.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/capplet/gsm-properties-dialog.c b/capplet/gsm-properties-dialog.c index 3f7a816..bde8999 100644 --- a/capplet/gsm-properties-dialog.c +++ b/capplet/gsm-properties-dialog.c @@ -181,6 +181,10 @@ append_app (GsmPropertiesDialog *dialog, GspApp *app) { GtkTreeIter iter; + if (find_by_app (GTK_TREE_MODEL (dialog->list_store), + &iter, app)) { + return; + } gtk_list_store_append (dialog->list_store, &iter); _fill_iter_from_app (dialog->list_store, &iter, app); |