[gnome-utils] Fix bug #581002 - Baobab crashes when scan is pointed to a de-selected mount point
- From: Fabio Marzocca <marzocca src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-utils] Fix bug #581002 - Baobab crashes when scan is pointed to a de-selected mount point
- Date: Fri, 1 May 2009 10:11:40 -0400 (EDT)
commit 5823b168f07f783f3377f9dca22a66ddda04eba9
Author: Fabio Marzocca <thesaltydog gmail com>
Date: Fri May 1 16:09:28 2009 +0200
Fix bug #581002 - Baobab crashes when scan is pointed to a de-selected mount point
Reworked code in baobab-utils.c in order to trap a request to scan a mount point
which was previously deselected in preferences.
---
baobab/src/baobab-utils.c | 5 +++++
baobab/src/baobab.c | 4 ----
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/baobab/src/baobab-utils.c b/baobab/src/baobab-utils.c
index 85c1514..8d5d872 100644
--- a/baobab/src/baobab-utils.c
+++ b/baobab/src/baobab-utils.c
@@ -290,6 +290,11 @@ baobab_check_dir (GFile *file)
GError *error = NULL;
gboolean ret = TRUE;
+ if (baobab_is_excluded_location (file)) {
+ message("", _("Cannot check an excluded folder!"), GTK_MESSAGE_INFO, baobab.window);
+ return FALSE;
+ }
+
info = g_file_query_info (file,
G_FILE_ATTRIBUTE_STANDARD_TYPE,
G_FILE_QUERY_INFO_NONE,
diff --git a/baobab/src/baobab.c b/baobab/src/baobab.c
index cf39eb9..6080935 100644
--- a/baobab/src/baobab.c
+++ b/baobab/src/baobab.c
@@ -975,10 +975,6 @@ initialize_ringschart (void)
static gboolean
start_proc_on_command_line (GFile *file)
{
- if (baobab_is_excluded_location (file)) {
- message("", _("Cannot check an excluded folder!"), GTK_MESSAGE_INFO, baobab.window);
- return FALSE;
- }
baobab_scan_location (file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]