From 17977d2a882d0730766f65000717d0ca74f3cccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Tue, 12 Jul 2016 05:00:07 -0500 Subject: [PATCH] Fixed a few bugs --- src/controller/buffers.py | 1 + src/controller/mainController.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/controller/buffers.py b/src/controller/buffers.py index b36ae3f..21ee349 100644 --- a/src/controller/buffers.py +++ b/src/controller/buffers.py @@ -365,6 +365,7 @@ class audioBuffer(feedBuffer): result = self.session.vk.client.audio.delete(**args) if int(result) == 1: output.speak(_(u"Removed audio from library")) + self.tab.list.remove_item(self.tab.list.get_selected()) def move_to_album(self, *args, **kwargs): album = selector.audioAlbum(_(u"Select the album where you want to move this song"), self.session) diff --git a/src/controller/mainController.py b/src/controller/mainController.py index 3e410dd..43ee4a6 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -344,7 +344,10 @@ class Controller(object): self.session.soundplayer.play("chat.ogg") def set_online(self): - r = self.session.vk.client.account.setOnline() + try: + r = self.session.vk.client.account.setOnline() + except: + log.error("Error in setting online for the current user") def create_unread_messages(self): msgs = self.session.vk.client.messages.getDialogs(count=200, unread=1)