r15178 by cbradney - Hint from Qt mailing list that also applied to Scribus, we were throwing away &s in filenames for the Recent File menu
scribus-commit
scribus-commit at lists.scribus.net
Fri Jun 11 00:50:42 CEST 2010
Revision: 15178
Author: cbradney
Date: 2010-06-10T22:40:38.108849Z
Commit message: Hint from Qt mailing list that also applied to Scribus, we were throwing away &s in filenames for the Recent File menu
Changeset:
M /trunk/Scribus/scribus/scribus.cpp
Diffs:
Index: scribus/scribus.cpp
===================================================================
--- scribus/scribus.cpp (revision 15177)
+++ scribus/scribus.cpp (revision 15178)
@@ -3140,7 +3140,7 @@
{
strippedName = localName = QDir::toNativeSeparators(RecentDocs[m]);
strippedName.remove(QDir::separator());
- scrRecentFileActions.insert(strippedName, new ScrAction(ScrAction::RecentFile, QPixmap(), QPixmap(), QString("&%1 %2").arg(m+1).arg(localName), QKeySequence(), this, 0,0.0,RecentDocs[m]));
+ scrRecentFileActions.insert(strippedName, new ScrAction(ScrAction::RecentFile, QPixmap(), QPixmap(), QString("&%1 %2").arg(m+1).arg(localName.replace("&","&&")), QKeySequence(), this, 0,0.0,RecentDocs[m]));
connect( scrRecentFileActions[strippedName], SIGNAL(triggeredData(QString)), this, SLOT(loadRecent(QString)) );
scrMenuMgr->addMenuItem(scrRecentFileActions[strippedName], "FileOpenRecent", true);
}
More information about the scribus-commit
mailing list