Email links "From"

Clicking email links now sets "From" based on the message the link is
in.
This commit is contained in:
Peter Šurda 2016-03-01 15:24:34 +08:00
parent af193a1bca
commit 113ceb0868

View File

@ -49,6 +49,7 @@ class MessageView(QtGui.QTextBrowser):
QtGui.QApplication.activeWindow().ui.lineEditSubject.setText(link.queryItemValue("subject"))
if link.hasQueryItem("body"):
QtGui.QApplication.activeWindow().ui.textEditMessage.setText(link.queryItemValue("body"))
QtGui.QApplication.activeWindow().setSendFromComboBox()
QtGui.QApplication.activeWindow().ui.tabWidgetSend.setCurrentIndex(0)
QtGui.QApplication.activeWindow().ui.tabWidget.setCurrentIndex(1)
QtGui.QApplication.activeWindow().ui.textEditMessage.setFocus()