增量数据备份不能选择文件夹进行备份
This commit is contained in:
parent
c9837b7b46
commit
b3178da4b5
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue