Merge pull request #76 from keywan-ghadami/workaround-workspace-settings

dlang ide crashed on opening an workspace by selecting an dub file.
This commit is contained in:
Vadim Lopatin 2015-12-17 18:27:08 +03:00
commit 5a3e6e3055
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class Workspace : WorkspaceItem {
protected BuildConfiguration _buildConfiguration;
protected ProjectConfiguration _projectConfiguration = ProjectConfiguration.DEFAULT;
this(IDEFrame frame, string fname = null) {
this(IDEFrame frame, string fname = WORKSPACE_EXTENSION) {
super(fname);
_workspaceFile = new SettingsFile(fname);
_settings = new WorkspaceSettings(fname ? fname ~ WORKSPACE_SETTINGS_EXTENSION : null);