Fixed errors when uploading audio files without ID3 tags to VK

This commit is contained in:
2019-07-22 12:49:46 -05:00
parent 36b25e1c9f
commit d1b11c0630
3 changed files with 27 additions and 9 deletions

View File

@@ -41,7 +41,7 @@ class attachDialog(widgetUtils.BaseDialog):
def get_image(self):
openFileDialog = wx.FileDialog(self, _("Select the picture to be uploaded"), "", "", _("Image files (*.png, *.jpg, *.gif)|*.png; *.jpg; *.gif"), wx.FD_OPEN | wx.FD_FILE_MUST_EXIST)
if openFileDialog.ShowModal() == wx.ID_CANCEL:
return None
return (None, None)
dsc = self.ask_description()
return (openFileDialog.GetPath(), dsc)