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,16 +519,14 @@ bool RiaApplication::saveProjectPromptForFileName()
|
||||
QString startPath;
|
||||
if (!m_project->fileName().isEmpty())
|
||||
{
|
||||
QFileInfo fi(m_project->fileName());
|
||||
startPath = fi.absolutePath();
|
||||
startPath = m_project->fileName();
|
||||
}
|
||||
else
|
||||
{
|
||||
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(*.*)"));
|
||||
if (fileName.isEmpty())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user