User forums > Using Code::Blocks
Recent Projects
Zini:
Just updated to rev 5892. The undesirable behaviour regarding project saving is still present for me.
Jenna:
I just updated my working copy to 5892 and build a debian-package of it, to see if something has changed.
Zini:
Looks like these functions are the culprit:
--- Code: ---void MainFrame::OnFileSaveProject(wxCommandEvent& event)
{
// no need to call SaveActiveProjectAs(), because this is handled in cbProject::Save()
if (Manager::Get()->GetProjectManager()->SaveActiveProject())
AddToRecentProjectsHistory(Manager::Get()->GetProjectManager()->GetActiveProject()->GetFilename());
DoUpdateStatusBar();
DoUpdateAppTitle();
}
void MainFrame::OnFileSaveProjectAs(wxCommandEvent& event)
{
if (Manager::Get()->GetProjectManager()->SaveActiveProjectAs())
AddToRecentProjectsHistory(Manager::Get()->GetProjectManager()->GetActiveProject()->GetFilename());
DoUpdateStatusBar();
DoUpdateAppTitle();
}
--- End code ---
Though that doesn't explain why it happens only for some people.
Zini:
I modified these two functions and that seems indeed to have fixed it. Here is the patch:
http://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=2844&group_id=5358
Jenna:
It still does not happen here.
EDIT:
It does happen if it is saved from the file-menu, but I almost always save my projects from the projects-tree content-menu.
So there is an inconsitency between this two menus, that should not be.
When the projects are (or the workspace is) saved with the appropriate "save all xxx" menu-item, they are also not added to recent-projects history.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version