remove uncomment in LoadFile
This commit is contained in:
parent
9a8fabc25e
commit
928c57f74b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user