Blame SOURCES/0001-General-Internet-Error-dialog-appearing-on-gio-mount.patch

df97e0
From ac68d29966f78ac8799f31f13578e4843a49043f Mon Sep 17 00:00:00 2001
df97e0
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
df97e0
Date: Tue, 14 Apr 2020 13:46:44 +0100
df97e0
Subject: [PATCH] "General Internet Error" dialog appearing on gio mount
df97e0
df97e0
we get a GError of G_IO_ERROR_FAILED_HANDLED which is documented
df97e0
as "Operation failed and a helper program has already interacted with the user.
df97e0
Do not display any error dialog." PENDING seems to describe this state
df97e0
better than a generic error case and results in no error dialog.
df97e0
df97e0
Change-Id: Iee382e49edaa0a734526659971e0339991e2c03e
df97e0
---
df97e0
 ucb/source/ucp/gio/gio_content.cxx | 4 +++-
df97e0
 1 file changed, 3 insertions(+), 1 deletion(-)
df97e0
df97e0
diff --git a/ucb/source/ucp/gio/gio_content.cxx b/ucb/source/ucp/gio/gio_content.cxx
df97e0
index 77a5c0127ae7..8576713974a8 100644
df97e0
--- a/ucb/source/ucp/gio/gio_content.cxx
df97e0
+++ b/ucb/source/ucp/gio/gio_content.cxx
df97e0
@@ -196,6 +196,9 @@ css::uno::Any convertToException(GError *pError, const css::uno::Reference< css:
df97e0
                 css::task::InteractionClassification_ERROR, css::ucb::IOErrorCode_NAME_TOO_LONG, aArgs);
df97e0
               EXCEPT(aExcept); }
df97e0
             break;
df97e0
+        case G_IO_ERROR_FAILED_HANDLED: /* Operation failed and a helper program
df97e0
+                                           has already interacted with the user. Do not display any error
df97e0
+                                           dialog */
df97e0
         case G_IO_ERROR_PENDING:
df97e0
             { css::ucb::InteractiveAugmentedIOException aExcept(sMessage, rContext,
df97e0
                 css::task::InteractionClassification_ERROR, css::ucb::IOErrorCode_PENDING, aArgs);
df97e0
@@ -257,7 +260,6 @@ css::uno::Any convertToException(GError *pError, const css::uno::Reference< css:
df97e0
         case G_IO_ERROR_NOT_EMPTY:
df97e0
         case G_IO_ERROR_NOT_SYMBOLIC_LINK:
df97e0
         case G_IO_ERROR_NOT_MOUNTABLE_FILE:
df97e0
-        case G_IO_ERROR_FAILED_HANDLED:
df97e0
             { css::ucb::InteractiveNetworkGeneralException aExcept(sMessage, rContext,
df97e0
                 css::task::InteractionClassification_ERROR);
df97e0
               EXCEPT(aExcept);}
df97e0
-- 
df97e0
2.25.1
df97e0