diff --git a/kybackup/module/databackup.cpp b/kybackup/module/databackup.cpp index 8e2471c..08ac74e 100755 --- a/kybackup/module/databackup.cpp +++ b/kybackup/module/databackup.cpp @@ -727,11 +727,9 @@ void DataBackup::initSecondWidget_inc() }); connect(buttonSelect, &MyPushButton::clicked, this, [=](){ - QFileDialog *fileDialog = new QFileDialog(this); - fileDialog->setViewMode(QFileDialog::List); + MyFileSelect *fileDialog = new MyFileSelect(this); fileDialog->setWindowTitle(tr("Please select file to backup")); fileDialog->setSidebarUrls(siderUrls); - fileDialog->setFilter(QDir::System | QDir::AllDirs | QDir::Files | QDir::NoDotAndDotDot); if (fileDialog->exec() == QDialog::Accepted) { QStringList selectFiles = fileDialog->selectedFiles();