77#include " ../settings/settings.h"
88
99QString Prompts::getCsvDelimiter (QWidget *parent,
10- [[maybe_unused]] const QString &defaultDelimiter = " , " ) {
10+ const QString &defaultDelimiter) {
1111 bool ok{};
1212 auto input = QInputDialog::getText (parent,
13- " CSV Delimeter " ,
14- " Please enter delimeter to use" ,
13+ " CSV Delimiter " ,
14+ " Please enter delimiter to use" ,
1515 QLineEdit::Normal,
16- " , " ,
16+ defaultDelimiter ,
1717 &ok);
1818 if (!ok || input.isEmpty ()) {
19- input = " , " ;
19+ input = defaultDelimiter ;
2020 }
2121 return input;
2222}
@@ -25,7 +25,7 @@ QString Prompts::getFolderPath(QWidget *parent) {
2525 SessionState state;
2626 Settings::getSessionState (&state);
2727 auto directory = state.lastUsedExportPath ;
28- if (state.lastUsedExportPath == Q_NULLPTR || state. lastUsedExportPath .isEmpty ()) {
28+ if (state.lastUsedExportPath .isEmpty ()) {
2929 directory = QDir::home ().absolutePath ();
3030 }
3131
@@ -41,7 +41,7 @@ QString Prompts::getFilePath(QWidget *parent,
4141 SessionState state;
4242 Settings::getSessionState (&state);
4343 auto directory = state.lastUsedExportPath ;
44- if (state.lastUsedExportPath == Q_NULLPTR || state. lastUsedExportPath .isEmpty ()) {
44+ if (state.lastUsedExportPath .isEmpty ()) {
4545 directory = QDir::home ().absolutePath ();
4646 }
4747
@@ -60,7 +60,7 @@ QString Prompts::getFilePath(QWidget *parent,
6060 }
6161 }
6262
63- return Q_NULLPTR ;
63+ return QString () ;
6464}
6565
6666bool Prompts::confirmDelete (QWidget *parent, const QString &tableName) {
0 commit comments