diff options
| author | Méven Car <[email protected]> | 2020-11-14 08:59:35 +0100 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2020-11-16 06:59:59 +0100 |
| commit | f2d2f325b628f8b831cce076c1a5f5dc43ac21ee (patch) | |
| tree | 9cdb699a10ab11bced1a9e4b9617b3c1c5df8d8e /src/panels | |
| parent | 8999580e2a049996fa48095cc0ed97b886f70eb5 (diff) | |
PlacesPanel: tooltip, use toLocalFile instead of path
To avoid Windows compatiblity issues.
Diffstat (limited to 'src/panels')
| -rw-r--r-- | src/panels/places/placespanel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panels/places/placespanel.cpp b/src/panels/places/placespanel.cpp index 66770ee86..ef174946b 100644 --- a/src/panels/places/placespanel.cpp +++ b/src/panels/places/placespanel.cpp @@ -486,7 +486,7 @@ void PlacesPanel::slotStorageSetupDone(int index, bool success) void PlacesPanel::slotShowTooltip() { const QUrl url = m_model->data(m_hoveredIndex).value("url").value<QUrl>(); - const QString text = url.isLocalFile() ? url.path() : url.toString(); + const QString text = url.toDisplayString(QUrl::PreferLocalFile); QToolTip::showText(m_hoverPos, text); } |
