Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: nanyu on May 28, 2012, 07:28:55 pm

Title: How to switch the active global var set during openning a workspace?
Post by: nanyu on May 28, 2012, 07:28:55 pm
sorry for my english.

I have a workspace, named WorkspaceA, using the a set of global variables which named "VarNameSetA".

And I have another workspace, named WorkspaceB, it has more than 10 projects.
All of those projects uses "VarNameSetB" as their "active global variables set"。

Once, I closed the WorksapceA, then open WorkspaceB...tragedy... Because I forget make "VarNameSetB" as the active set.now  C::B show 50 times the "Global Variable Edtior" Dialog, and I have to click on 50 times the "OK" button.

I want to know is, as this time, is there any way I can make the "VarNameSetB" as the "Active Set" one? In order to avoid this annoying dialog? At this time,I can not even close the worksapce. I have to close again and again that annoying dialog.

[attachment deleted by admin]
Title: Re: How to switch the active global var set during openning a workspace?
Post by: nanyu on June 03, 2012, 05:28:17 am
anyone help me?
Title: Re: How to switch the active global var set during openning a workspace?
Post by: Freem on June 05, 2012, 10:41:06 pm
I do not think there is a solution to automatically switch variable sets.

But I am not really used to them, I think I never have used more than one set...
I guess the solution to be faster would be to kill C::B, restart it, change the set and load your workspace.

And if you configured C::B to automatically open your last workspace, try to open directly the good (the old, the first) workspace with C::B to avoid being annoyed by those dialogs.

I can not help more...