Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 2966110d authored by David Redondo's avatar David Redondo 🏎 Committed by Nate Graham

Fix bug in filename template parser

Summary: Quick fix for a bug in the parser. Before if the template included multiple `%Nd` expressions only the first would be parsed and all occurences of it replaced.

Test Plan:
Before:
{F6697593}
After:
{F6697592}

Reviewers: #spectacle, ngraham

Reviewed By: #spectacle, ngraham

Tags: #spectacle

Differential Revision: https://phabricator.kde.org/D19814
parent d8f5642d
......@@ -189,7 +189,7 @@ QString ExportManager::makeAutosaveFilename()
paddingRE.setPattern(QStringLiteral("%(\\d*)d"));
QRegularExpressionMatch paddingMatch;
if (result.indexOf(paddingRE, 0, &paddingMatch) > -1) {
while (result.indexOf(paddingRE, 0, &paddingMatch) > -1) {
int highestFileNumber = 0;
// determine padding value
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment