From 066814724b77c1873c4bfa8b5075d77f638d0a9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Thu, 12 Feb 2015 13:18:24 -0600 Subject: [PATCH] A bugfix on buffers deletion --- src/controller/buffersController.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/controller/buffersController.py b/src/controller/buffersController.py index 01f96aa3..5603ba9b 100644 --- a/src/controller/buffersController.py +++ b/src/controller/buffersController.py @@ -218,8 +218,8 @@ class baseBufferController(bufferController): if "timeline" in self.name: dlg = commonMessageDialogs.remove_buffer() if dlg == widgetUtils.YES: - if self.name[:9] in self.session.settings["other_buffers"]["timelines"]: - self.session.settings["other_buffers"]["timelines"].remove(self.name[:9]) + if self.name[:-9] in self.session.settings["other_buffers"]["timelines"]: + self.session.settings["other_buffers"]["timelines"].remove(self.name[:-9]) return True elif dlg == widgetUtils.NO: return False @@ -602,8 +602,8 @@ class trendsBufferController(bufferController): def remove_buffer(self): dlg = commonMessageDialogs.remove_buffer() if dlg == widgetUtils.YES: - if self.name in self.session.settings["other_buffers"]["trending_topic_buffers"]: - self.session.settings["other_buffers"]["trending_topic_buffers"].remove(self.name) + if self.name[:-3] in self.session.settings["other_buffers"]["trending_topic_buffers"]: + self.session.settings["other_buffers"]["trending_topic_buffers"].remove(self.name[:-3]) return True elif dlg == widgetUtils.NO: return False \ No newline at end of file