From fdb014ad3fc80e3de75612f3e6e77e6cf1881c6b Mon Sep 17 00:00:00 2001 From: Méven Car Date: Wed, 15 Oct 2025 17:11:17 +0200 Subject: dolphinview: for samba use special placeholder only for / And no hostname set cases. For other invalid cases (invalid host, host unreachable), we get the Canceled Loading status. BUG: 509253 --- src/views/dolphinview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/views/dolphinview.cpp') diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 2df373be7..8a7693fc6 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -2556,7 +2556,7 @@ void DolphinView::updatePlaceholderLabel() } else if (m_url.scheme() == QLatin1String("recentlyused")) { m_placeholderLabel->setText(i18n("No recently used items")); - } else if (m_url.scheme() == QLatin1String("smb")) { + } else if (m_url.scheme() == QLatin1String("smb") && (m_url.host().isEmpty() || m_url.path().isEmpty() || m_url.path() == QLatin1String("/"))) { m_placeholderLabel->setText(i18n("No shared folders found")); } else if (m_url.scheme() == QLatin1String("network")) { m_placeholderLabel->setText(i18n("No relevant network resources found")); -- cgit v1.3