diff --git a/src/dbmanager.cpp b/src/dbmanager.cpp index d8e2d69d..ced8253a 100644 --- a/src/dbmanager.cpp +++ b/src/dbmanager.cpp @@ -2502,9 +2502,8 @@ void DBManager::exportNotes(const QString &baseExportPath, const QString &extens counter = 1; while (directory.exists(filePath)) { filePath = QStringLiteral("%1%2%3 %4%5") - .arg(notePath, QDir::separator(), safeTitle) - .arg(counter++) - .arg(extension); + .arg(notePath, QDir::separator(), safeTitle, + QString::number(counter++), extension); } // qDebug() << "Exporting note:" << filePath;