Skip to content

Commit

Permalink
Suggest import folder name as default project name
Browse files Browse the repository at this point in the history
  • Loading branch information
trufanov-nok committed May 15, 2018
1 parent 5d1eb06 commit e35de9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1775,7 +1775,9 @@ MainWindow::saveProjectAsTriggered()
project_dir = QFileInfo(m_projectFile).absolutePath();
} else {
QSettings settings;
project_dir = settings.value(_key_project_last_dir).toString();
project_dir = settings.value(_key_project_last_input_dir).toString();
// suggest folder name as default project name
project_dir += '/' + QDir(project_dir).dirName();
}

QString project_file(
Expand Down

0 comments on commit e35de9a

Please sign in to comment.