-rw-r--r-- | noncore/net/mail/opiemail.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/noncore/net/mail/opiemail.cpp b/noncore/net/mail/opiemail.cpp index 2f87e44..b153292 100644 --- a/noncore/net/mail/opiemail.cpp +++ b/noncore/net/mail/opiemail.cpp @@ -24,5 +24,5 @@ using namespace Opie::Core; -OpieMail::OpieMail( QWidget *parent, const char *name, WFlags flags ) +OpieMail::OpieMail( QWidget *parent, const char *name, WFlags ) : MainWindow( parent, name, WStyle_ContextHelp ) { @@ -65,4 +65,16 @@ void OpieMail::appMessage(const QCString &msg, const QByteArray &data) } +/** + * Konqueror calls us with the mailto:name@address + */ +void OpieMail::setDocument(const QString& mail) +{ + /* + * It looks like a mailto address, lets try it + */ + if( mail.startsWith(QString::fromLatin1("mailto:")) ) + slotwriteMail(QString::null, mail.mid(7)); +} + void OpieMail::slotwriteMail(const QString&name,const QString&email) { |