Fix error inside Save layout dialog. Closes #123

This commit is contained in:
Roman Telezhynskyi 2021-04-26 09:03:45 +03:00
parent e1fa77510b
commit a2d7446308
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
- [smart-pattern/valentina#121] Incorrect elliptical arc end angle.
- [smart-pattern/valentina#122] Extend piece bounding rect.
- Remember last selected export format.
- [smart-pattern/valentina#123] Error inside Save layout dialog.
# Version 0.7.46 Mar 31, 2021
- Fix incorrect calculation of value for multisize measurements in Valentina.

View File

@ -548,7 +548,7 @@ void DialogSaveLayout::PathChanged(const QString &text)
QDir dir(text);
dir.setPath(text);
if (dir.exists(text))
if (not text.isEmpty() && dir.exists(text))
{
bOk->setEnabled(true);
palette.setColor(ui->lineEditPath->foregroundRole(), Qt::black);