Skip to content

Commit

Permalink
us_spectrum: replace (*.*) with (*) in the QFileDialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
samo38 committed Dec 17, 2024
1 parent cb5cc0e commit 401a83f
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 401a83f

Please sign in to comment.