mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Correct, cleanup, translate and unify file filters
Correct spelling and typos in file filters. Unify and translate file filter names. Don't pass a file filter to a directory open dialog - not needed. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
92ba4b9cc7
commit
8b56dc30d7
9 changed files with 105 additions and 77 deletions
|
@ -49,8 +49,7 @@ void Smrtk2ssrfcWindow::updateLastUsedDir(const QString &dir)
|
|||
void Smrtk2ssrfcWindow::on_inputFilesButton_clicked()
|
||||
{
|
||||
inputFiles = QFileDialog::getOpenFileNames(this, tr("Open SmartTrak files"), lastUsedDir(),
|
||||
tr("SmartTrak files (*.slg *.SLG);;"
|
||||
"All files (*)"));
|
||||
tr("SmartTrak files") + " (*.slg);;" + tr("All files") + " (*.*)");
|
||||
if (inputFiles.isEmpty())
|
||||
return;
|
||||
updateLastUsedDir(QFileInfo(inputFiles[0]).dir().path());
|
||||
|
@ -61,8 +60,7 @@ void Smrtk2ssrfcWindow::on_inputFilesButton_clicked()
|
|||
void Smrtk2ssrfcWindow::on_outputFileButton_clicked()
|
||||
{
|
||||
outputFile = QFileDialog::getSaveFileName(this, tr("Open Subsurface files"), lastUsedDir(),
|
||||
tr("Subsurface files (*.ssrf *SSRF *.xml *.XML);;"
|
||||
"All files (*)"));
|
||||
tr("Subsurface files") + " (*.ssrf *.xml);;" + tr("All files") + " (*.*)");
|
||||
if (outputFile.isEmpty())
|
||||
return;
|
||||
updateLastUsedDir(QFileInfo(outputFile).dir().path());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue