Fix error inside Save layout dialog. Closes #123

v0.6.x
Roman Telezhynskyi 2021-04-26 09:05:48 +03:00
parent 27a3e28855
commit 58ed7c2794
2 changed files with 3 additions and 2 deletions

View File

@ -42,7 +42,8 @@
- Fix incorrect filename regular expressions.
- Enabling Show Curve Details option causes constant redraw.
- Fix regression with country flags.
- [smart-pattern/valentina#121] Incorrect elliptical arc end angle
- [smart-pattern/valentina#121] Incorrect elliptical arc end angle.
- [smart-pattern/valentina#123] Error inside Save layout dialog.
# Version 0.6.1 October 23, 2018
- [#885] Regression. Broken support for multi size measurements.

View File

@ -545,7 +545,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);