aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/docker/dockerdevice.h
diff options
context:
space:
mode:
authorMarcus Tillmanns <[email protected]>2024-04-02 12:31:48 +0200
committerMarcus Tillmanns <[email protected]>2024-04-04 08:32:59 +0000
commitc03fa4dbad40bee513da339af74ea7d99272b456 (patch)
treef8c80c2cd0ea484e0f749ef42dd5d7256bdf01fa /src/plugins/docker/dockerdevice.h
parent3067f57905738bc6575f9173d860e6ace2380c99 (diff)
ProjectExplorer: Add Device::canMount
Diffstat (limited to 'src/plugins/docker/dockerdevice.h')
-rw-r--r--src/plugins/docker/dockerdevice.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/docker/dockerdevice.h b/src/plugins/docker/dockerdevice.h
index ee4334b55b6..e08a60cbc3c 100644
--- a/src/plugins/docker/dockerdevice.h
+++ b/src/plugins/docker/dockerdevice.h
@@ -68,6 +68,11 @@ public:
Utils::FilePath rootPath() const override;
Utils::FilePath filePath(const QString &pathOnDevice) const override;
+ bool canMount(const Utils::FilePath &filePath) const override
+ {
+ return !filePath.needsDevice() || filePath.isSameDevice(rootPath());
+ }
+
bool handlesFile(const Utils::FilePath &filePath) const override;
bool ensureReachable(const Utils::FilePath &other) const override;
Utils::expected_str<Utils::FilePath> localSource(const Utils::FilePath &other) const override;