mirror of
https://gitlab.com/smart-pattern/valentina.git
synced 2024-09-28 19:31:32 +02:00
Convertor error in console mode.
--HG-- branch : develop
This commit is contained in:
parent
0b57b8821a
commit
9069337a7a
|
@ -171,7 +171,10 @@ void TMainWindow::LoadFile(const QString &path)
|
|||
{
|
||||
std::exit(V_EX_NOINPUT);
|
||||
}
|
||||
return;
|
||||
else
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Check if file already opened
|
||||
|
@ -196,7 +199,10 @@ void TMainWindow::LoadFile(const QString &path)
|
|||
{
|
||||
std::exit(V_EX_NOINPUT);
|
||||
}
|
||||
return;
|
||||
else
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
try
|
||||
|
@ -270,7 +276,15 @@ void TMainWindow::LoadFile(const QString &path)
|
|||
delete data;
|
||||
data = nullptr;
|
||||
lock.reset();
|
||||
return;
|
||||
|
||||
if (qApp->IsTestMode())
|
||||
{
|
||||
std::exit(V_EX_NOINPUT);
|
||||
}
|
||||
else
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue