Implemented BPartition::_IsModified(), so that BDiskDevice::IsModified()
does actually work now. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22882 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
17fdd1f071
commit
54a5f0b731
@ -1598,6 +1598,5 @@ BPartition::_IsModified() const
|
||||
if (!fDelegate)
|
||||
return false;
|
||||
|
||||
// TODO: Implement!
|
||||
return false;
|
||||
return fDelegate->IsModified();
|
||||
}
|
||||
|
@ -118,6 +118,14 @@ BPartition::Delegate::CountChildren() const
|
||||
}
|
||||
|
||||
|
||||
// IsModified
|
||||
bool
|
||||
BPartition::Delegate::IsModified() const
|
||||
{
|
||||
return fMutablePartition.ChangeFlags() != 0;
|
||||
}
|
||||
|
||||
|
||||
// SupportedOperations
|
||||
uint32
|
||||
BPartition::Delegate::SupportedOperations(uint32 mask)
|
||||
|
@ -33,6 +33,8 @@ public:
|
||||
Delegate* ChildAt(int32 index) const;
|
||||
int32 CountChildren() const;
|
||||
|
||||
bool IsModified() const;
|
||||
|
||||
uint32 SupportedOperations(uint32 mask);
|
||||
uint32 SupportedChildOperations(Delegate* child,
|
||||
uint32 mask);
|
||||
|
Loading…
Reference in New Issue
Block a user