From 77187226cd201207c54da69be21ef06ea2c7dfe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 16 Feb 2006 20:27:11 +0000 Subject: [PATCH] Was broken when the mounting feature is disabled. This fixes bug #132. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16436 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/tracker/MountMenu.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/kits/tracker/MountMenu.cpp b/src/kits/tracker/MountMenu.cpp index ffe0384a75..368cb98401 100644 --- a/src/kits/tracker/MountMenu.cpp +++ b/src/kits/tracker/MountMenu.cpp @@ -49,15 +49,16 @@ All rights reserved. #include "Bitmaps.h" #if OPEN_TRACKER -#include "DeviceMap.h" +# include "DeviceMap.h" #else -#include +# include #endif #define SHOW_NETWORK_VOLUMES + MountMenu::MountMenu(const char *name) - : BMenu(name) + : BMenu(name) { SetFont(be_plain_font); } @@ -126,7 +127,7 @@ AddOnePartitionAsMenuItem(Partition *partition, void *castToParams) return NULL; } -#endif +#endif // _INCLUDES_CLASS_DEVICE_MAP bool @@ -150,7 +151,6 @@ MountMenu::AddDynamicItem(add_state) autoMounter->EachPartition(&AddOnePartitionAsMenuItem, ¶ms); #ifdef SHOW_NETWORK_VOLUMES - // iterate the volume roster and look for volumes with the // 'shared' attributes -- these same volumes will not be returned // by the autoMounter because they do not show up in the /dev tree @@ -181,7 +181,7 @@ MountMenu::AddDynamicItem(add_state) AddItem(item); } } -#endif +#endif // SHOW_NETWORK_VOLUMES AddSeparatorItem(); @@ -202,9 +202,7 @@ MountMenu::AddDynamicItem(add_state) if (rescanItem) rescanItem->SetTarget(autoMounter); +#endif // _INCLUDES_CLASS_DEVICE_MAP return false; -#else - return true; -#endif }