Skip to content

Commit ace89f1

Browse files
committed
Ensure window title for JSON export dialog is correct
It was still using the default title for the dialog (Export data as CSV), which was a bit confusing.
1 parent 1026e9e commit ace89f1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/ExportDataDialog.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ ExportDataDialog::ExportDataDialog(DBBrowserDB& db, ExportFormats format, QWidge
2424

2525
// Show different option widgets depending on the export format
2626
ui->stackFormat->setCurrentIndex(format);
27+
if(format == ExportFormatJson) {
28+
setWindowTitle(tr("Export data as JSON"));
29+
}
2730

2831
// Retrieve the saved dialog preferences
2932
ui->checkHeader->setChecked(Settings::getValue("exportcsv", "firstrowheader").toBool());

0 commit comments

Comments
 (0)