Automagicly jump to the relevant metagroup too when jumping to items

This commit is contained in:
cncfanatics
2010-10-21 12:22:44 +02:00
parent db5aec0434
commit b1bcd96c57
3 changed files with 12 additions and 1 deletions

2
eos

Submodule eos updated: bb51319d86...176b0b9df9

View File

@@ -133,6 +133,15 @@ class MarketBrowser(wx.Panel):
mg = item.marketGroup
if mg is None and item.metaGroup is not None:
mg = item.metaGroup.parent.marketGroup
cMarket = service.Market.getInstance()
for btn in ("normal", "faction", "complex", "officer"):
getattr(self, btn).SetValue(False)
cMarket.disableMetaGroup(btn)
metaGroup = item.metaGroup.name.lower()
getattr(self, metaGroup).SetValue(True)
cMarket.activateMetaGroup(metaGroup)
self.searching = False
if mg is None:
return
@@ -153,6 +162,7 @@ class MarketBrowser(wx.Panel):
self.marketView.Expand(item)
self.marketView.SelectItem(item)
self.searching = True
def addMarketViewImage(self, iconFile):
if iconFile is None:

View File

@@ -23,6 +23,7 @@ import wx
import threading
from sqlalchemy.orm.exc import NoResultFound
import Queue
import traceback
class PriceWorkerThread(threading.Thread):
def run(self):