Commit 836bc780 authored by Ian Bush's avatar Ian Bush
Browse files

Refs #17807 Replace selected instances of *.* with *

parent 012f97d5
......@@ -755,7 +755,7 @@ void InstrumentWidgetMaskTab::sumDetsToWorkspace() {
void InstrumentWidgetMaskTab::saveIncludeGroupToFile() {
QString fname = m_instrWidget->getSaveFileName(
"Save grouping file", "XML files (*.xml);;All (*.* *)");
"Save grouping file", "XML files (*.xml);;All (*)");
if (!fname.isEmpty()) {
QList<int> dets;
m_instrWidget->getSurface()->getMaskedDetectors(dets);
......@@ -765,7 +765,7 @@ void InstrumentWidgetMaskTab::saveIncludeGroupToFile() {
void InstrumentWidgetMaskTab::saveExcludeGroupToFile() {
QString fname = m_instrWidget->getSaveFileName(
"Save grouping file", "XML files (*.xml);;All (*.* *)");
"Save grouping file", "XML files (*.xml);;All (*)");
if (!fname.isEmpty()) {
QList<int> dets;
m_instrWidget->getSurface()->getMaskedDetectors(dets);
......@@ -845,7 +845,7 @@ void InstrumentWidgetMaskTab::saveMaskingToFile(bool invertMask) {
QApplication::restoreOverrideCursor();
QString fileName = m_instrWidget->getSaveFileName(
"Select location and name for the mask file",
"XML files (*.xml);;All (*.* *)");
"XML files (*.xml);;All (*)");
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
if (!fileName.isEmpty()) {
......
......@@ -13,7 +13,7 @@ class DgsInterface(InstrumentInterface):
Defines the widgets for direct geometry spectrometer reduction
"""
# Allowed extensions for loading data files
data_type = "Data files *.* (*)"
data_type = "Data files * (*)"
def __init__(self, name, settings):
super(DgsInterface, self).__init__(name, settings)
......
......@@ -13,7 +13,7 @@ class DiffractionInterface(InstrumentInterface):
Defines the widgets for direct geometry spectrometer reduction
"""
# Allowed extensions for loading data files
data_type = "Data files *.* (*)"
data_type = "Data files * (*)"
def __init__(self, name, settings):
"""
......
......@@ -309,7 +309,7 @@ class RunSetupWidget(BaseWidget):
def _calfile_browse(self):
""" Event handing for browsing calibrtion file
"""
fname = self.data_browse_dialog(data_type="*.h5;;*.cal;;*.hd5;;*.hdf;;*.*")
fname = self.data_browse_dialog(data_type="*.h5;;*.cal;;*.hd5;;*.hdf;;*")
if fname:
self._content.calfile_edit.setText(fname)
......@@ -318,7 +318,7 @@ class RunSetupWidget(BaseWidget):
def _charfile_browse(self):
""" Event handing for browsing calibrtion file
"""
fname = self.data_browse_dialog("*.txt;;*.*")
fname = self.data_browse_dialog("*.txt;;*")
if fname:
self._content.charfile_edit.setText(fname)
......@@ -328,7 +328,7 @@ class RunSetupWidget(BaseWidget):
""" Event handling for browsing Exp Ini file
:return:
"""
exp_ini_file_name = self.data_browse_dialog(data_type="*.ini;;*.*")
exp_ini_file_name = self.data_browse_dialog(data_type="*.ini;;*")
if exp_ini_file_name:
self._content.lineEdit_expIniFile.setText(exp_ini_file_name)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment