Convertor error in console mode.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-10-01 18:21:13 +03:00
parent 0b57b8821a
commit 9069337a7a

View File

@ -171,7 +171,10 @@ void TMainWindow::LoadFile(const QString &path)
{ {
std::exit(V_EX_NOINPUT); std::exit(V_EX_NOINPUT);
} }
return; else
{
return;
}
} }
// Check if file already opened // Check if file already opened
@ -196,7 +199,10 @@ void TMainWindow::LoadFile(const QString &path)
{ {
std::exit(V_EX_NOINPUT); std::exit(V_EX_NOINPUT);
} }
return; else
{
return;
}
} }
try try
@ -270,7 +276,15 @@ void TMainWindow::LoadFile(const QString &path)
delete data; delete data;
data = nullptr; data = nullptr;
lock.reset(); lock.reset();
return;
if (qApp->IsTestMode())
{
std::exit(V_EX_NOINPUT);
}
else
{
return;
}
} }
} }
else else