remove uncomment in LoadFile

This commit is contained in:
Ronan Le Tiec 2020-05-02 09:30:53 +02:00
parent 9a8fabc25e
commit 928c57f74b

View File

@ -85,17 +85,17 @@ PuzzleMainWindow::~PuzzleMainWindow()
//---------------------------------------------------------------------------------------------------------------------
bool PuzzleMainWindow::LoadFile(QString path)
{
// try
// {
// VLayoutConverter converter(path);
// path = converter.Convert();
// }
// catch (VException &e)
// {
// qCCritical(pWindow, "%s\n\n%s\n\n%s", qUtf8Printable(tr("File error.")),
// qUtf8Printable(e.ErrorMessage()), qUtf8Printable(e.DetailedInformation()));
// return false;
// }
try
{
VLayoutConverter converter(path);
path = converter.Convert();
}
catch (VException &e)
{
qCCritical(pWindow, "%s\n\n%s\n\n%s", qUtf8Printable(tr("File error.")),
qUtf8Printable(e.ErrorMessage()), qUtf8Printable(e.DetailedInformation()));
return false;
}
QFile file(path);
file.open(QIODevice::ReadOnly);