diff options
Diffstat (limited to '')
-rw-r--r-- | partitionmanager.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp index 40e08634a..ffa43eeff 100644 --- a/partitionmanager.cpp +++ b/partitionmanager.cpp @@ -569,7 +569,6 @@ bool TWPartitionManager::Make_MD5(PartitionSettings *part_settings) return true; } - bool TWPartitionManager::Backup_Partition(PartitionSettings *part_settings) { time_t start, stop; int use_compression, adb_control_bu_fd; @@ -730,7 +729,6 @@ int TWPartitionManager::Run_Backup(bool adbbackup) { if (!Mount_Current_Storage(true)) return false; - DataManager::GetValue(TW_SKIP_MD5_GENERATE_VAR, do_md5); if (do_md5 == 0) part_settings.generate_md5 = true; @@ -842,7 +840,6 @@ int TWPartitionManager::Run_Backup(bool adbbackup) { part_settings.Part = Find_Partition_By_Path(backup_path); if (part_settings.Part != NULL) { if (!Backup_Partition(&part_settings)) - return false; } else { gui_msg(Msg(msg::kError, "unable_to_locate_partition=Unable to locate '{1}' partition for backup calculations.")(backup_path)); @@ -920,7 +917,6 @@ bool TWPartitionManager::Restore_Partition(PartitionSettings *part_settings) { time(&Start); - if (!part_settings->Part->Restore(part_settings)) { TWFunc::SetPerformanceMode(false); return false; @@ -2078,13 +2074,13 @@ TWPartition *TWPartitionManager::Get_Default_Storage_Partition() { TWPartition *res = NULL; for (std::vector<TWPartition*>::iterator iter = Partitions.begin(); iter != Partitions.end(); ++iter) { - if(!(*iter)->Is_Storage) + if (!(*iter)->Is_Storage) continue; - if((*iter)->Is_Settings_Storage) + if ((*iter)->Is_Settings_Storage) return *iter; - if(!res) + if (!res) res = *iter; } return res; |