The bug does seem to just appear in special compiler
constellations. We're unsure why this fix works. To better see if this
fix works or if crashes still occur, we added some logging.
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
#include <QDir>
#include <QMessageBox>
+#include <QLoggingCategory>
namespace OCC {
+Q_LOGGING_CATEGORY(lcFolderCreationDialog, "nextcloud.gui.foldercreationdialog", QtInfoMsg)
+
FolderCreationDialog::FolderCreationDialog(const QString &destination, QWidget *parent)
: QDialog(parent)
, ui(new Ui::FolderCreationDialog)
const QString suggestedFolderNamePrefix = QObject::tr("New folder");
- const auto newFolderFullPath = _destination + "/" + suggestedFolderNamePrefix;
+ const QString newFolderFullPath = _destination + QLatin1Char('/') + suggestedFolderNamePrefix;
if (!QDir(newFolderFullPath).exists()) {
ui->newFolderNameEdit->setText(suggestedFolderNamePrefix);
} else {