Skip to content

Commit

Permalink
Merge pull request #169 from samo38/issue_398
Browse files Browse the repository at this point in the history
us_spectrum: replace (*.*) with (*) in the QFileDialog.
  • Loading branch information
ehb54 authored Dec 17, 2024
2 parents cb5cc0e + 401a83f commit 31180c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions programs/us_spectrum/us_spectrum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ void US_Spectrum::load_basis()
//struct WavelengthProfile temp_wp;
QFileDialog dialog (this);

dialog.setNameFilter(tr("Text Files (*.txt *.csv *.dat *.wa *.dsp);;All Files (*.*)"));
dialog.setNameFilter(tr("Text Files (*.txt *.csv *.dat *.wa *.dsp);;All Files (*)"));
//dialog.setNameFilter(tr("Text files (*.[Rr][Ee][Ss]);;All files (*)"));
dialog.setFileMode(QFileDialog::ExistingFiles);
dialog.setViewMode(QFileDialog::Detail);
Expand Down Expand Up @@ -341,7 +341,7 @@ void US_Spectrum::plot_basis()
//brings in the target spectrum according to user specification
void US_Spectrum::load_target()
{
QString filter = tr("Text Files (*.txt *.csv *.dat *.wa *.dsp);;All Files (*.*)");
QString filter = tr("Text Files (*.txt *.csv *.dat *.wa *.dsp);;All Files (*)");
QString fpath = QFileDialog::getOpenFileName(this, "Load The Target Spectrum",

US_Settings::dataDir(), filter);
Expand Down Expand Up @@ -931,7 +931,7 @@ void US_Spectrum::findAngles()

void US_Spectrum::save()
{
QString basename = QFileDialog::getSaveFileName(this, "Set the Base Name for the 'CSV' and 'DAT' Files", US_Settings::resultDir(), "All Files (*.*)");
QString basename = QFileDialog::getSaveFileName(this, "Set the Base Name for the 'CSV' and 'DAT' Files", US_Settings::resultDir(), "All Files (*)");
if(basename.isEmpty()) {
return;
}
Expand Down

0 comments on commit 31180c5

Please sign in to comment.