[nautilus-sound-converter] Fix crash due to user deleting the cdlossy profile (#640931)
- From: Brian Pepple <bpepple src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-sound-converter] Fix crash due to user deleting the cdlossy profile (#640931)
- Date: Sun, 30 Jan 2011 22:33:26 +0000 (UTC)
commit 3d5d06954a098f8ab792215ce490186fd2ca2594
Author: Brian Pepple <bpepple fedoraproject org>
Date: Sun Jan 30 17:33:22 2011 -0500
Fix crash due to user deleting the cdlossy profile (#640931)
src/nsc-converter.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/nsc-converter.c b/src/nsc-converter.c
index 3831a4c..6b85852 100644
--- a/src/nsc-converter.c
+++ b/src/nsc-converter.c
@@ -686,9 +686,11 @@ create_main_dialog (NscConverter *converter)
priv->profile_chooser = gm_audio_profile_choose_new ();
/* Set which profile is active */
- profile_id = gm_audio_profile_get_id (priv->profile);
- gm_audio_profile_choose_set_active (priv->profile_chooser,
- profile_id);
+ if (priv->profile) {
+ profile_id = gm_audio_profile_get_id (priv->profile);
+ gm_audio_profile_choose_set_active (priv->profile_chooser,
+ profile_id);
+ }
/* Create edit profile button */
edit = gtk_button_new_with_mnemonic (dgettext (GETTEXT_PACKAGE, "Edit _Profiles..."));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]