Update partitionmanager.cpp