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,8 +171,11 @@ void TMainWindow::LoadFile(const QString &path)
{ {
std::exit(V_EX_NOINPUT); std::exit(V_EX_NOINPUT);
} }
else
{
return; return;
} }
}
// Check if file already opened // Check if file already opened
QList<TMainWindow*>list = qApp->MainWindows(); QList<TMainWindow*>list = qApp->MainWindows();
@ -196,8 +199,11 @@ void TMainWindow::LoadFile(const QString &path)
{ {
std::exit(V_EX_NOINPUT); std::exit(V_EX_NOINPUT);
} }
else
{
return; return;
} }
}
try try
{ {
@ -270,9 +276,17 @@ void TMainWindow::LoadFile(const QString &path)
delete data; delete data;
data = nullptr; data = nullptr;
lock.reset(); lock.reset();
if (qApp->IsTestMode())
{
std::exit(V_EX_NOINPUT);
}
else
{
return; return;
} }
} }
}
else else
{ {
qApp->NewMainWindow(); qApp->NewMainWindow();