diff --git a/kybackup/module/databackup.cpp b/kybackup/module/databackup.cpp index abb5ba9..7486636 100755 --- a/kybackup/module/databackup.cpp +++ b/kybackup/module/databackup.cpp @@ -500,7 +500,10 @@ void DataBackup::initSecondWidget() } } - if (this->m_udiskPaths.contains(fileName)) { + if (GlobelBackupInfo::inst().hasBackupPartition() && fileName == Utils::getSysRootPath()) { + comboSelect->setCurrentIndex(0); + this->m_customizePath = ""; + } else if (this->m_udiskPaths.contains(fileName)) { comboSelect->setCurrentIndex(this->m_udiskPaths.indexOf(fileName)); this->m_customizePath = ""; } else { @@ -509,7 +512,7 @@ void DataBackup::initSecondWidget() QLineEdit * edit = new QLineEdit; comboSelect->setLineEdit(edit); - edit->setText(tr("customize path : ") + fileName + BACKUP_SNAPSHOTS_PATH); + edit->setText(tr("customize path : ") + QString(fileName + BACKUP_SNAPSHOTS_PATH).replace("//", "/")); edit->setReadOnly(true); if (listWidget->getBackupPaths().size() > 0) nextStep->setEnabled(true); diff --git a/kybackup/module/systembackup.cpp b/kybackup/module/systembackup.cpp index 477c178..e9f3e17 100755 --- a/kybackup/module/systembackup.cpp +++ b/kybackup/module/systembackup.cpp @@ -356,7 +356,10 @@ void SystemBackup::initSecondWidget() } } - if (this->m_udiskPaths.contains(fileName)) { + if (GlobelBackupInfo::inst().hasBackupPartition() && fileName == Utils::getSysRootPath()) { + comboSelect->setCurrentIndex(0); + this->m_customizePath = ""; + } else if (this->m_udiskPaths.contains(fileName)) { comboSelect->setCurrentIndex(this->m_udiskPaths.indexOf(fileName)); this->m_customizePath = ""; } else { @@ -365,7 +368,7 @@ void SystemBackup::initSecondWidget() QLineEdit * edit = new QLineEdit; comboSelect->setLineEdit(edit); - edit->setText(tr("customize path : ") + fileName + BACKUP_SNAPSHOTS_PATH); + edit->setText(tr("customize path : ") + QString(fileName + BACKUP_SNAPSHOTS_PATH).replace("//", "/")); edit->setReadOnly(true); nextStep->setEnabled(true); }