Use current project name as suggested project file Save As name

This commit is contained in:
Magne Sjaastad 2015-09-18 18:48:29 +02:00
parent fef1d93a9e
commit d9b070c0ef

View File

@ -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())
{