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)