diff --git a/src/ExportManager.cpp b/src/ExportManager.cpp --- a/src/ExportManager.cpp +++ b/src/ExportManager.cpp @@ -190,12 +190,12 @@ .replace(QLatin1String("%m"), timestamp.toString(QStringLiteral("mm"))) .replace(QLatin1String("%S"), timestamp.toString(QStringLiteral("ss"))) .replace(QLatin1String("%T"), title); - + // check if basename includes %[N]d token for sequential file numbering QRegularExpression paddingRE; paddingRE.setPattern(QStringLiteral("%(\\d*)d")); QRegularExpressionMatch paddingMatch; - + while (result.indexOf(paddingRE, 0, &paddingMatch) > -1) { int highestFileNumber = 0; @@ -208,7 +208,7 @@ // search save directory for files QDir dir(baseDir); const QStringList fileNames = dir.entryList(QDir::Files, QDir::Name); - + // if there are files in the directory... if (fileNames.length() > 0) { QString resultCopy = result; diff --git a/src/Gui/KSMainWindow.cpp b/src/Gui/KSMainWindow.cpp --- a/src/Gui/KSMainWindow.cpp +++ b/src/Gui/KSMainWindow.cpp @@ -400,10 +400,6 @@ // TODO: Find better solution QTimer::singleShot(250, qApp, &QApplication::quit); } - // TODO for else case: - // Currently it is expected that you emit forceNotify, and finally quit - // via a callback through KNotification::action1Activated. However, that - // is not working quite right, see Bug #389694 which needs fixing. } void KSMainWindow::showInlineMessage(const QString& message, const KMessageWidget::MessageType messageType,