Trending topic buffers are removed from configuration

This commit is contained in:
Manuel Cortez 2014-12-07 12:22:19 -06:00
parent bb1ffa9ff1
commit 8e92d97260
2 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ class trendsPanel(wx.Panel):
dlg = wx.MessageDialog(self, _(u"Do you really want to delete this buffer?"), _(u"Attention"), style=wx.ICON_QUESTION|wx.YES_NO)
if dlg.ShowModal() == wx.ID_YES:
topics = config.main["other_buffers"]["trending_topic_buffers"]
topic = self.name_buffer
topic = self.name_buffer[:-3]
log.info(u"Deleting %s's trending topics buffer" % topic)
if topic in topics:
topics.remove(topic)

View File

@ -41,8 +41,8 @@ if hasattr(sys, 'frozen'):
sys.stderr = open(paths.logs_path("stderr.log"), 'w')
sys.stdout = open(paths.logs_path("stdout.log"), 'w')
#app = wx.App()
app = wx.App(redirect=True, useBestVisual=True, filename=paths.logs_path('tracebacks.log'))
app = wx.App()
#app = wx.App(redirect=True, useBestVisual=True, filename=paths.logs_path('tracebacks.log'))
configured = False
configs = []
for i in os.listdir(paths.config_path()):