You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
box.addButton("Select a different folder...", QMessageBox::ActionRole);
252
254
box.addButton("Cancel", QMessageBox::RejectRole);
253
255
int ret = box.exec();
254
256
255
-
switch(ret) {
256
-
case1: {
257
-
QString imagefolder = QFileDialog::getExistingDirectory(mainwindow, "Could not find the images, please select the image folder:", project->dir.absolutePath());
258
-
if(imagefolder.isNull()) {
259
-
QMessageBox::critical(mainwindow, "No folder selected", "No folder selected.");
260
-
return;
261
-
}
262
-
project->dir.setPath(imagefolder);
263
-
QDir::setCurrent(imagefolder);
264
-
project->checkMissingImages();
265
-
project->checkImages();
266
-
}
267
-
break;
268
-
case2: //cancel
257
+
if(ret == 2) {
258
+
QDir::setCurrent(current);
269
259
return;
270
-
case3: //ignore
271
-
project->missing.clear();
272
-
break;
273
260
}
274
-
}
275
261
262
+
QString imagefolder = QFileDialog::getExistingDirectory(mainwindow, "Could not find the images, please select the image folder:", project->dir.absolutePath());
263
+
if(imagefolder.isNull()) {
264
+
QMessageBox::critical(mainwindow, "No folder selected", "No folder selected.");
0 commit comments