#2369 Elm props: Clear cell results on deletion

This commit is contained in:
Rebecca Cox
2018-01-15 14:48:00 +01:00
parent 277bd496f1
commit 4bf8de2787
5 changed files with 32 additions and 9 deletions

View File

@@ -48,9 +48,9 @@ void RicImportElementPropertyFeature::onActionTriggered(bool isChecked)
QString defaultDir = app->lastUsedDialogDirectory("ELM_PROPS");
QStringList fileNames =
QFileDialog::getOpenFileNames(NULL, "Import Element Property Table", defaultDir, "Property Table (*.inp)");
QFileDialog::getOpenFileNames(nullptr, "Import Element Property Table", defaultDir, "Property Table (*.inp)");
if (fileNames.size())
if (!fileNames.empty())
{
defaultDir = QFileInfo(fileNames.last()).absolutePath();
}