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

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