Skip to content

Commit

Permalink
fix: Improve the function of batch exporting images
Browse files Browse the repository at this point in the history
   Improve the function of batch exporting images

Log: Improve the function of batch exporting images
Bug: https://pms.uniontech.com/bug-view-237179.html
  • Loading branch information
starhcq committed Jan 26, 2024
1 parent 51e5349 commit 0cf0ec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/album/controller/exporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void Exporter::exportAlbum(const QStringList &albumPaths, const QString &albumna
exportDialog.setDirectory(QStandardPaths::standardLocations(QStandardPaths::PicturesLocation).at(0));

if (exportDialog.exec() == QDialog::Accepted) {
QString exportdir = exportDialog.directory().absolutePath();
QString exportdir = exportDialog.selectedFiles().at(0);

QDir dir;
dir.mkdir(exportdir + "/" + albumname);
Expand Down Expand Up @@ -117,7 +117,7 @@ void Exporter::popupDialogSaveImage(const QStringList &imagePaths)
exportDialog.setDirectory(QStandardPaths::standardLocations(QStandardPaths::PicturesLocation).at(0));

if (exportDialog.exec() == QDialog::Accepted) {
QString exportdir = exportDialog.directory().absolutePath();
QString exportdir = exportDialog.selectedFiles().at(0);

int failcount = 0;
bool bnewpath = false;
Expand Down

0 comments on commit 0cf0ec3

Please sign in to comment.