[brasero] Make sure the project is not automatically saved on quitting when it's empty



commit 7f9256025a4ff952feb83ff652ec79701c674f54
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Wed Jul 22 14:56:57 2009 +0200

    Make sure the project is not automatically saved on quitting when it's empty

 src/brasero-project.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/brasero-project.c b/src/brasero-project.c
index d3d3e6b..a9ac9e2 100644
--- a/src/brasero-project.c
+++ b/src/brasero-project.c
@@ -2549,6 +2549,15 @@ brasero_project_save_session (BraseroProject *project,
 		return FALSE;
 	}
 
+	if (project->priv->empty) {
+		/* the project is empty anyway. No need to ask anything.
+		 * return FALSE since this is not a tmp project */
+		if (saved_uri)
+			*saved_uri = NULL;
+
+		return FALSE;
+	}
+
 	if (project->priv->project) {
 		GtkResponseType answer;
 
@@ -2582,15 +2591,6 @@ brasero_project_save_session (BraseroProject *project,
 		return FALSE;
 	}
 
-	if (project->priv->empty) {
-		/* the project is empty anyway. No need to ask anything.
-		 * return FALSE since this is not a tmp project */
-		if (saved_uri)
-			*saved_uri = NULL;
-
-		return FALSE;
-	}
-
     	if (project->priv->burnt) {
 		GtkResponseType answer;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]