From e75c597dbc9ce70933601d6c6d848626fbee63bc Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Mon, 30 Mar 2009 14:08:13 +0000 Subject: [PATCH] Don't show error about not mounted when loading a directory, as this will 2009-03-30 Alexander Larsson * src/file-manager/fm-error-reporting.c: (fm_report_error_loading_directory): Don't show error about not mounted when loading a directory, as this will anyway automaticall trigger a mount operation (and possible error from that). svn path=/trunk/; revision=15154 --- ChangeLog | 8 ++++++++ src/file-manager/fm-error-reporting.c | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 17313d7ec..58382e23b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-03-30 Alexander Larsson + + * src/file-manager/fm-error-reporting.c: + (fm_report_error_loading_directory): + Don't show error about not mounted when loading a directory, as + this will anyway automaticall trigger a mount operation (and possible + error from that). + 2009-03-26 Alexander Larsson Bug 576761 – fallback icon when icon specified in .desktop doesn't exist is ugly diff --git a/src/file-manager/fm-error-reporting.c b/src/file-manager/fm-error-reporting.c index ace6e503a..56f85a67c 100644 --- a/src/file-manager/fm-error-reporting.c +++ b/src/file-manager/fm-error-reporting.c @@ -51,6 +51,12 @@ fm_report_error_loading_directory (NautilusFile *file, return; } + if (error->domain == G_IO_ERROR && + error->code == G_IO_ERROR_NOT_MOUNTED) { + /* This case is retried automatically */ + return; + } + file_name = nautilus_file_get_display_name (file); if (error->domain == G_IO_ERROR) { -- GitLab