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:
parent
76ca72eccd
commit
0b5e5040eb
|
@ -19,12 +19,12 @@
|
||||||
|
|
||||||
#define KPMCORE_PARTRESIZERWIDGET_H
|
#define KPMCORE_PARTRESIZERWIDGET_H
|
||||||
|
|
||||||
|
#include "core/partition.h"
|
||||||
#include "util/libpartitionmanagerexport.h"
|
#include "util/libpartitionmanagerexport.h"
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
|
|
||||||
class Partition;
|
|
||||||
class PartWidget;
|
class PartWidget;
|
||||||
class Device;
|
class Device;
|
||||||
|
|
||||||
|
@ -97,6 +97,8 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
bool align() const {
|
bool align() const {
|
||||||
|
if (partition().isMounted())
|
||||||
|
return false;
|
||||||
return m_Align; /**< @return true if the Partition is to be aligned */
|
return m_Align; /**< @return true if the Partition is to be aligned */
|
||||||
}
|
}
|
||||||
void setAlign(bool b) {
|
void setAlign(bool b) {
|
||||||
|
|
Loading…
Reference in New Issue