diff --git a/batchigramwizard.cpp b/batchigramwizard.cpp index 03283a65..1a7d24cc 100644 --- a/batchigramwizard.cpp +++ b/batchigramwizard.cpp @@ -277,7 +277,6 @@ void batchIgramWizard::showPlots(bool flags){ void batchIgramWizard::on_batchIgramWizard_finished(int /*result*/) { - //emit swapBathConnections(false); } void batchIgramWizard::select(int n){ diff --git a/batchigramwizard.h b/batchigramwizard.h index 152f9d22..faafc80a 100644 --- a/batchigramwizard.h +++ b/batchigramwizard.h @@ -51,7 +51,6 @@ class batchIgramWizard : public QWizard void showPlots(bool flags); batchIntro *introPage; signals: - void swapBathConnections(bool); void abort(); diff --git a/mainwindow.cpp b/mainwindow.cpp index 4059437c..e94a514e 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -475,8 +475,7 @@ void MainWindow::on_actionLoad_Interferogram_triggered() ui->useAnnulust->hide(); if (dialog.exec()){ if (dialog.selectedFiles().size() == 1){ - QStringList selectedFiles = dialog.selectedFiles(); - loadFile(selectedFiles.first()); + loadFile(dialog.selectedFiles().constFirst()); } else{ m_igramsToProcess = dialog.selectedFiles(); @@ -1303,7 +1302,6 @@ void MainWindow::batchProcess(QStringList fileList){ void MainWindow::Batch_Process_Interferograms() { batchWiz = new batchIgramWizard(m_igramsToProcess, this,Qt::Window); - connect(batchWiz,SIGNAL(swapBathConnections(bool)),this, SLOT(batchConnections(bool))); batchConnections(true); //connect(batchIgramWizard::goPb, &QPushButton::pressed, this, &MainWindow::batchProcess); connect(batchWiz, SIGNAL(finished(int)), this, SLOT(batchFinished(int))); diff --git a/psi_dlg.cpp b/psi_dlg.cpp index 8bbf4c78..87a9e8e0 100644 --- a/psi_dlg.cpp +++ b/psi_dlg.cpp @@ -65,7 +65,7 @@ void PSI_dlg::on_browse_clicked() dialog.setNameFilters(filters); if (dialog.exec()){ QStringList files = dialog.selectedFiles(); - QFileInfo a(files.first()); + QFileInfo a(files.constFirst()); settings.setValue("lastPath",a.absoluteFilePath()); //m_surfaceManager->process_psi(dialog.selectedFiles()); ui->igramList->addItems(files);