┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/statusbar
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2016-06-25 16:39:49 +0200
committerDavid Faure <[email protected]>2016-06-25 16:40:18 +0200
commite615bfaed4cd562d31ea0506529f730c414b6ec0 (patch)
treee83924de3e0a12c63f13fccf8f04bfcc39a1dd34 /src/statusbar
parent6bb62f17b525baf89e7f35f4f3a321876c3a31ab (diff)
add_definitions(-DQT_NO_URL_CAST_FROM_STRING) + fix compilation
This fixes some URLs built from local paths without scheme.
Diffstat (limited to 'src/statusbar')
-rw-r--r--src/statusbar/mountpointobservercache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/statusbar/mountpointobservercache.cpp b/src/statusbar/mountpointobservercache.cpp
index ab3744eac..48796ac5a 100644
--- a/src/statusbar/mountpointobservercache.cpp
+++ b/src/statusbar/mountpointobservercache.cpp
@@ -62,10 +62,10 @@ MountPointObserver* MountPointObserverCache::observerForUrl(const QUrl& url)
} else {
// Even if determining the mount point failed, the observer might still
// be able to retrieve information about the url.
- cachedObserverUrl = url.toLocalFile();
+ cachedObserverUrl = url;
}
} else {
- cachedObserverUrl = url.url();
+ cachedObserverUrl = url;
}
MountPointObserver* observer = m_observerForMountPoint.value(cachedObserverUrl);