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.
This commit is contained in:
Justin Clift
2017-04-04 13:53:30 +01:00
parent 1026e9e777
commit ace89f124d

View File

@@ -24,6 +24,9 @@ ExportDataDialog::ExportDataDialog(DBBrowserDB& db, ExportFormats format, QWidge
// Show different option widgets depending on the export format
ui->stackFormat->setCurrentIndex(format);
if(format == ExportFormatJson) {
setWindowTitle(tr("Export data as JSON"));
}
// Retrieve the saved dialog preferences
ui->checkHeader->setChecked(Settings::getValue("exportcsv", "firstrowheader").toBool());