diff --git a/ADeditor/mainwindow.cpp b/ADeditor/mainwindow.cpp index 248bf94..0b21f2c 100644 --- a/ADeditor/mainwindow.cpp +++ b/ADeditor/mainwindow.cpp @@ -955,11 +955,18 @@ void MainWindow::on_pbImgAdd_clicked() { int id = adloader->animations.values().at(ui->lvAnimations->currentIndex().row()).id; QFileDialog fd; + QStringList strl; fd.setNameFilter(tr("Images (*.png)")); fd.setFileMode(QFileDialog::ExistingFiles); + QDir dir; if (fd.exec()) { - adloader->animations[id].pathes.append(fd.selectedFiles()); + strl = fd.selectedFiles(); + for (int i=0; ianimations[id].pathes.append(strl); refresh_lwImages(adloader->animations.value(id).pathes); isSaved = false; } diff --git a/data2.xml b/data2.xml index b2a2956..babd331 100644 --- a/data2.xml +++ b/data2.xml @@ -25,7 +25,7 @@ - + @@ -103,12 +103,12 @@ - - - - - - - + + + + + + +