diff options
| author | Méven Car <[email protected]> | 2025-10-15 17:11:17 +0200 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2025-10-23 15:55:55 +0000 |
| commit | fdb014ad3fc80e3de75612f3e6e77e6cf1881c6b (patch) | |
| tree | 242d91b12f50216457d31a331367a32ed84ecda9 /src/views | |
| parent | 8e0dd405fb78c68becd17190feffa6351aa59f2d (diff) | |
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
Diffstat (limited to 'src/views')
| -rw-r--r-- | src/views/dolphinview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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")); |
