Skip to content

Commit

Permalink
[BUG_FIXED] Fix Project Manager's "Open Workspace" and "Reload Worksp…
Browse files Browse the repository at this point in the history
…ace" commands bug - without removing the old Workspace.

- Notepad-plus svn trunk @ 832
  • Loading branch information
donho committed Oct 29, 2011
1 parent 87ca46d commit d5b7d8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions PowerEditor/src/WinControls/ProjectPanel/ProjectPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ bool ProjectPanel::openWorkSpace(const TCHAR *projectFileName)
if (!::PathFileExists(projectFileName))
return false;

_treeView.removeAllItems();
_workSpaceFilePath = projectFileName;

NativeLangSpeaker *pNativeSpeaker = (NppParameters::getInstance())->getNativeLangSpeaker();
Expand All @@ -316,8 +317,8 @@ void ProjectPanel::newWorkSpace()
NativeLangSpeaker *pNativeSpeaker = (NppParameters::getInstance())->getNativeLangSpeaker();
generic_string workspace = pNativeSpeaker->getProjectPanelLangStr("WorkspaceRootName", PM_WORKSPACEROOTNAME);
_treeView.addItem(workspace.c_str(), TVI_ROOT, INDEX_CLEAN_ROOT);
setWorkSpaceDirty(false);
_workSpaceFilePath = TEXT("");
setWorkSpaceDirty(false);
_workSpaceFilePath = TEXT("");
}

bool ProjectPanel::saveWorkSpace()
Expand Down

0 comments on commit d5b7d8d

Please sign in to comment.