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 ea043a938a
commit e1965849c2
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

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