mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-27 10:49:58 +01:00
fix: "dxf2elmt" and "QET_ElementScaler" also read imported files from QETApp::documentDir() by default
This commit is contained in:
@@ -1472,7 +1472,7 @@ void QETElementEditor::on_m_import_dxf_triggered()
|
|||||||
{
|
{
|
||||||
QString file_path{QFileDialog::getOpenFileName(this,
|
QString file_path{QFileDialog::getOpenFileName(this,
|
||||||
QObject::tr("Importer un fichier dxf"),
|
QObject::tr("Importer un fichier dxf"),
|
||||||
QDir::homePath(),
|
QETApp::documentDir(),
|
||||||
"DXF (*.dxf)")};
|
"DXF (*.dxf)")};
|
||||||
if (file_path.isEmpty()) {
|
if (file_path.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
@@ -1498,7 +1498,7 @@ void QETElementEditor::on_m_import_scaled_element_triggered()
|
|||||||
{
|
{
|
||||||
QString file_path{QFileDialog::getOpenFileName(this,
|
QString file_path{QFileDialog::getOpenFileName(this,
|
||||||
tr("Importer un élément à redimensionner"),
|
tr("Importer un élément à redimensionner"),
|
||||||
QDir::homePath(),
|
QETApp::documentDir(),
|
||||||
tr("Éléments QElectroTech (*.elmt)"))};
|
tr("Éléments QElectroTech (*.elmt)"))};
|
||||||
if (file_path.isEmpty()) {
|
if (file_path.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user