From f0b38ba614c668c9f52811a61fc4d055ce0f9afb Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Tue, 4 Sep 2012 12:07:08 +0200 Subject: [PATCH] Removed trailing whitespace. --- Gui/mainwindow.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Gui/mainwindow.cpp b/Gui/mainwindow.cpp index b19c43fad91..7375b7b88c6 100644 --- a/Gui/mainwindow.cpp +++ b/Gui/mainwindow.cpp @@ -393,7 +393,7 @@ void MainWindow::open(int file_type) ImportFileType::type t = static_cast<ImportFileType::type>(file_type); QString type_str = QString::fromStdString((ImportFileType::convertImportFileTypeToString(t))); QString fileName = QFileDialog::getOpenFileName(this, - "Select " + type_str + " file to import", + "Select " + type_str + " file to import", settings.value("lastOpenedFileDirectory").toString(), QString::fromStdString(ImportFileType::getFileSuffixString(t))); if (!fileName.isEmpty()) @@ -555,7 +555,7 @@ void MainWindow::loadFile(ImportFileType::type t, const QString &fileName) updateDataViews(); } else - OGSError::box("Failed to load a FEFLOW file."); + OGSError::box("Failed to load a FEFLOW file."); */ } else if (t == ImportFileType::GMS) @@ -654,7 +654,7 @@ void MainWindow::loadFile(ImportFileType::type t, const QString &fileName) OGSError::box("Failed to load a TetGen mesh."); settings.setValue("lastOpenedTetgenFileDirectory", QDir(node_fname).absolutePath()); */ - } + } } else if (t == ImportFileType::VTK) { @@ -754,9 +754,9 @@ QMenu* MainWindow::createImportFilesMenu() QAction* vtkFiles = importFiles->addAction("&VTK Files..."); connect( vtkFiles, SIGNAL(triggered()), _signal_mapper, SLOT(map()) ); _signal_mapper->setMapping(vtkFiles, ImportFileType::VTK); - + connect(_signal_mapper, SIGNAL(mapped(int)), this, SLOT(open(int))); - + return importFiles; } -- GitLab