mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Use current project name as suggested project file Save As name
This commit is contained in:
parent
fef1d93a9e
commit
d9b070c0ef
@ -519,15 +519,13 @@ bool RiaApplication::saveProjectPromptForFileName()
|
|||||||
QString startPath;
|
QString startPath;
|
||||||
if (!m_project->fileName().isEmpty())
|
if (!m_project->fileName().isEmpty())
|
||||||
{
|
{
|
||||||
QFileInfo fi(m_project->fileName());
|
startPath = m_project->fileName();
|
||||||
startPath = fi.absolutePath();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
startPath = app->defaultFileDialogDirectory("BINARY_GRID");
|
startPath = app->defaultFileDialogDirectory("BINARY_GRID");
|
||||||
}
|
|
||||||
|
|
||||||
startPath += "/ResInsightProject.rsp";
|
startPath += "/ResInsightProject.rsp";
|
||||||
|
}
|
||||||
|
|
||||||
QString fileName = QFileDialog::getSaveFileName(NULL, tr("Save File"), startPath, tr("Project Files (*.rsp);;All files(*.*)"));
|
QString fileName = QFileDialog::getSaveFileName(NULL, tr("Save File"), startPath, tr("Project Files (*.rsp);;All files(*.*)"));
|
||||||
if (fileName.isEmpty())
|
if (fileName.isEmpty())
|
||||||
|
Loading…
Reference in New Issue
Block a user