diff options
| author | Lennart Poettering <lennart@poettering.net> | 2009-06-18 00:58:19 +0200 | 
|---|---|---|
| committer | Lennart Poettering <lennart@poettering.net> | 2009-06-18 00:58:19 +0200 | 
| commit | 59bd793734d71c6baa5ed35044f18165ffe9685c (patch) | |
| tree | bf1611ba704384345b4cb3e94551e746a2806743 | |
| parent | d773638b20b0a6750a5405521ee0c8974d1b72ec (diff) | |
card-restore: we don't need to save card data that came from the database
| -rw-r--r-- | src/modules/module-card-restore.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/src/modules/module-card-restore.c b/src/modules/module-card-restore.c index 85478d12..62c50616 100644 --- a/src/modules/module-card-restore.c +++ b/src/modules/module-card-restore.c @@ -197,8 +197,9 @@ static pa_hook_result_t card_new_hook_callback(pa_core *c, pa_card_new_data *new      if ((e = read_entry(u, new_data->name)) && e->profile[0]) {          if (!new_data->active_profile) { -            pa_card_new_data_set_profile(new_data, e->profile);              pa_log_info("Restoring profile for card %s.", new_data->name); +            pa_card_new_data_set_profile(new_data, e->profile); +            new_data->save_profile = FALSE;          } else              pa_log_debug("Not restoring profile for card %s, because already set.", new_data->name); | 
