mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Improve files names extension for Gnome DE and Flatpak
This commit is contained in:
@@ -125,10 +125,10 @@ int BOMExportDialog::exec()
|
||||
if (r == QDialog::Accepted)
|
||||
{
|
||||
//save in csv file
|
||||
QString file_name = tr("nomenclature_") + QString(m_project ->title());
|
||||
if (!file_name.endsWith(".csv")) {
|
||||
file_name += ".csv";
|
||||
}
|
||||
QString file_name = tr("nomenclature_") + QString(m_project ->title() + ".csv");
|
||||
// if (!file_name.endsWith(".csv")) {
|
||||
// file_name += ".csv";
|
||||
// }
|
||||
QString file_path = QFileDialog::getSaveFileName(this, tr("Enregister sous... "), file_name, tr("Fichiers csv (*.csv)"));
|
||||
QFile file(file_path);
|
||||
if (!file_path.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user