Do not align partitions if they are mounted.

Moving data when partitions are mounted is almost guaranteed to cause data loss.

BUG: 412575
This commit is contained in:
Andrius Štikonas 2019-10-05 11:52:59 +01:00
parent 76ca72eccd
commit 0b5e5040eb
1 changed files with 3 additions and 1 deletions

View File

@ -19,12 +19,12 @@
#define KPMCORE_PARTRESIZERWIDGET_H
#include "core/partition.h"
#include "util/libpartitionmanagerexport.h"
#include <QWidget>
#include <QLabel>
class Partition;
class PartWidget;
class Device;
@ -97,6 +97,8 @@ public:
}
bool align() const {
if (partition().isMounted())
return false;
return m_Align; /**< @return true if the Partition is to be aligned */
}
void setAlign(bool b) {