From 4b9a1e2578cf9a411fd9e17a24fbef794a6f0b23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Tue, 10 Nov 2009 14:45:21 +0000 Subject: [PATCH] * GuiAbout.cpp: - unmask e-mail addresses in the credits pane. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31936 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiAbout.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiAbout.cpp b/src/frontends/qt4/GuiAbout.cpp index 218c061027..9f8d657807 100644 --- a/src/frontends/qt4/GuiAbout.cpp +++ b/src/frontends/qt4/GuiAbout.cpp @@ -58,9 +58,14 @@ static QString credits() line = ts.readLine(); if (line.startsWith("@b")) out << "" << line.mid(2) << ""; - else if (line.startsWith("@i")) + else if (line.startsWith("@i")) { + if (line.startsWith("@iE-mail")) { + // unmask email + line.replace(QString(" () "), QString("@")); + line.replace(QString(" ! "), QString(".")); + } out << "" << line.mid(2) << ""; - else + } else out << line; out << "
"; } while (!line.isNull());