r15177 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:24 CEST 2010
Revision: 15177
Author: cbradney
Date: 2010-06-10T22:40:24.378724Z
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 /branches/Version135/Scribus/scribus/scribus.cpp
Diffs:
Index: scribus/scribus.cpp
===================================================================
--- scribus/scribus.cpp (revision 15176)
+++ scribus/scribus.cpp (revision 15177)
@@ -3425,7 +3425,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], recentFileMenuName);
}
More information about the scribus-commit
mailing list