mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#541) Change multiple "_" in default export file name to one
This commit is contained in:
parent
a7b3950c6b
commit
27a6775e3c
@ -29,6 +29,7 @@
|
||||
|
||||
#include <QAction>
|
||||
#include <QFileDialog>
|
||||
#include <QRegExp>
|
||||
|
||||
CAF_CMD_SOURCE_INIT(RicExportToLasFileFeature, "RicExportToLasFileFeature");
|
||||
|
||||
@ -54,6 +55,7 @@ void RicExportToLasFileFeature::onActionTriggered(bool isChecked)
|
||||
defaultFileName.replace(".", "_");
|
||||
defaultFileName.replace(",", "_");
|
||||
defaultFileName.replace(" ", "_");
|
||||
defaultFileName.replace(QRegExp("_+"), "_");
|
||||
defaultFileName.append(".las");
|
||||
|
||||
QString fileName = QFileDialog::getSaveFileName(RiuMainWindow::instance(), tr("Export Curve Data To LAS File"), QDir(defaultDir).absoluteFilePath(defaultFileName), tr("LAS Files (*.las);;All files(*.*)"));
|
||||
|
Loading…
Reference in New Issue
Block a user