[brasero] Fix problem with message appearing in option dialog
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Subject: [brasero] Fix problem with message appearing in option dialog
- Date: Sun, 17 May 2009 12:26:22 -0400 (EDT)
commit d6fdd09a72e183398bc48d03dd2ec760d7dc9083
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Sun May 17 11:27:02 2009 +0200
Fix problem with message appearing in option dialog
---
libbrasero-burn/brasero-burn-options.c | 16 +++-------------
1 files changed, 3 insertions(+), 13 deletions(-)
diff --git a/libbrasero-burn/brasero-burn-options.c b/libbrasero-burn/brasero-burn-options.c
index 9e1fcdf..d8760b4 100644
--- a/libbrasero-burn/brasero-burn-options.c
+++ b/libbrasero-burn/brasero-burn-options.c
@@ -240,19 +240,9 @@ brasero_burn_options_update_no_medium_warning (BraseroBurnOptions *self)
priv = BRASERO_BURN_OPTIONS_PRIVATE (self);
- if (!priv->is_valid) {
- brasero_notify_message_remove (BRASERO_NOTIFY (priv->message_output),
- BRASERO_BURN_OPTIONS_NO_MEDIUM_WARNING);
- return;
- }
-
- if (!brasero_burn_session_is_dest_file (BRASERO_BURN_SESSION (priv->session))) {
- brasero_notify_message_remove (BRASERO_NOTIFY (priv->message_output),
- BRASERO_BURN_OPTIONS_NO_MEDIUM_WARNING);
- return;
- }
-
- if (brasero_medium_selection_get_media_num (BRASERO_MEDIUM_SELECTION (priv->selection)) != 1) {
+ if (!priv->is_valid
+ || !brasero_burn_session_is_dest_file (BRASERO_BURN_SESSION (priv->session))
+ || brasero_medium_selection_get_media_num (BRASERO_MEDIUM_SELECTION (priv->selection)) != 1) {
brasero_notify_message_remove (BRASERO_NOTIFY (priv->message_output),
BRASERO_BURN_OPTIONS_NO_MEDIUM_WARNING);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]