From ba098efab77ac4742850f2ecb6c556e74b496b83 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 2 Aug 2007 12:33:00 +0000 Subject: [PATCH] Return a valid partition index also when there's only the disk device. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21787 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/apps/partitioner/Partitioner.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tests/apps/partitioner/Partitioner.cpp b/src/tests/apps/partitioner/Partitioner.cpp index 7ce8bc8196..bda82adfc1 100644 --- a/src/tests/apps/partitioner/Partitioner.cpp +++ b/src/tests/apps/partitioner/Partitioner.cpp @@ -549,6 +549,7 @@ private: // if the disk device has no children, we select it without asking if (fDevice->CountChildren() == 0) { partition = fDevice; + _partitionIndex = 0; return true; }