From 5f5d917ad1f9dc4eeafffe03aed29d88c111269b Mon Sep 17 00:00:00 2001 From: Ryan Leavengood Date: Wed, 24 Jan 2007 19:29:46 +0000 Subject: [PATCH] Your wish is my command: now only removable read-only volumes have their desktops integrated in Tracker. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19947 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/tracker/PoseView.cpp | 5 +++-- src/kits/tracker/TrackerSettings.cpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/kits/tracker/PoseView.cpp b/src/kits/tracker/PoseView.cpp index 5d674fe103..e0c2abc8e0 100644 --- a/src/kits/tracker/PoseView.cpp +++ b/src/kits/tracker/PoseView.cpp @@ -9258,8 +9258,9 @@ BPoseView::ShouldIntegrateDesktop(const BVolume &volume) if (!settings.IntegrateNonBootBeOSDesktops()) return false; - // That's obviously what makes a BeOS desktop :-) - return volume.KnowsQuery() && volume.KnowsAttr() && volume.KnowsMime(); + // Only removable read-only volumes should have their desktops integrated + return volume.IsRemovable() && volume.IsReadOnly() + && volume.KnowsQuery() && volume.KnowsAttr() && volume.KnowsMime(); } diff --git a/src/kits/tracker/TrackerSettings.cpp b/src/kits/tracker/TrackerSettings.cpp index 67fecae52a..a77fd8e013 100644 --- a/src/kits/tracker/TrackerSettings.cpp +++ b/src/kits/tracker/TrackerSettings.cpp @@ -172,7 +172,7 @@ TTrackerState::LoadSettingsIfNeeded() Add(fMountSharedVolumesOntoDesktop = new BooleanValueSetting("MountSharedVolumesOntoDesktop", false)); Add(fIntegrateNonBootBeOSDesktops = new BooleanValueSetting - ("IntegrateNonBootBeOSDesktops", false)); + ("IntegrateNonBootBeOSDesktops", true)); Add(fIntegrateAllNonBootDesktops = new BooleanValueSetting ("IntegrateAllNonBootDesktops", false)); Add(fEjectWhenUnmounting = new BooleanValueSetting("EjectWhenUnmounting", true));