增量数据备份不能选择文件夹进行备份

This commit is contained in:
zhaominyong 2022-05-16 15:25:21 +08:00
parent c9837b7b46
commit b3178da4b5
1 changed files with 1 additions and 3 deletions

View File

@ -727,11 +727,9 @@ void DataBackup::initSecondWidget_inc()
}); });
connect(buttonSelect, &MyPushButton::clicked, this, [=](){ connect(buttonSelect, &MyPushButton::clicked, this, [=](){
QFileDialog *fileDialog = new QFileDialog(this); MyFileSelect *fileDialog = new MyFileSelect(this);
fileDialog->setViewMode(QFileDialog::List);
fileDialog->setWindowTitle(tr("Please select file to backup")); fileDialog->setWindowTitle(tr("Please select file to backup"));
fileDialog->setSidebarUrls(siderUrls); fileDialog->setSidebarUrls(siderUrls);
fileDialog->setFilter(QDir::System | QDir::AllDirs | QDir::Files | QDir::NoDotAndDotDot);
if (fileDialog->exec() == QDialog::Accepted) { if (fileDialog->exec() == QDialog::Accepted) {
QStringList selectFiles = fileDialog->selectedFiles(); QStringList selectFiles = fileDialog->selectedFiles();