From 928c57f74b32c892c6dc55bd886bdea59f7e1dee Mon Sep 17 00:00:00 2001 From: Ronan Le Tiec Date: Sat, 2 May 2020 09:30:53 +0200 Subject: [PATCH] remove uncomment in LoadFile --- src/app/puzzle/puzzlemainwindow.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/app/puzzle/puzzlemainwindow.cpp b/src/app/puzzle/puzzlemainwindow.cpp index 208f8af8b..8f8252a76 100644 --- a/src/app/puzzle/puzzlemainwindow.cpp +++ b/src/app/puzzle/puzzlemainwindow.cpp @@ -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);