Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
tree->GetSelection not working anymore on rev7548
MortenMacFly:
--- Quote from: jens on November 03, 2011, 09:50:39 pm ---So all code that uses
--- Code: ---wxTreeCtrl::GetSelection()
--- End code ---
has to be fixed to use
--- Code: ---ProjectManager::GetTreeSelection()
--- End code ---
instead.
--- End quote ---
That is certainly true. It seems I missed one position, where this applies, too. I'll correct this once I find the time...
--- Quote from: daniloz on November 03, 2011, 02:57:31 pm ---If instead of
--- Code: --- wxTreeItemId selItem = tree->GetSelection();
--- End code ---
I use
--- Code: --- wxTreeItemId selItem = Manager::Get()->GetProjectManager()->GetTreeSelection();
--- End code ---
--- End quote ---
That would be the right thing to do...
daniloz:
@jens and @MortenMacFly:
Thanks very much for your answers!!!
MortenMacFly:
--- Quote from: daniloz on November 04, 2011, 10:10:55 am ---@jens and @MortenMacFly:
Thanks very much for your answers!!!
--- End quote ---
BTW: It's committed meanwhile. I've missed at least three positions, actually... :?
Navigation
[0] Message Index
[*] Previous page
Go to full version