Fix compatibility with previous versions.
This commit is contained in:
parent
283a62f580
commit
97d4e6378a
|
@ -607,7 +607,14 @@ void DialogSaveManualLayout::RemoveFormatFromList(LayoutExportFormats format)
|
||||||
void DialogSaveManualLayout::ReadSettings()
|
void DialogSaveManualLayout::ReadSettings()
|
||||||
{
|
{
|
||||||
VPSettings *settings = VPApplication::VApp()->PuzzleSettings();
|
VPSettings *settings = VPApplication::VApp()->PuzzleSettings();
|
||||||
|
try
|
||||||
|
{
|
||||||
SelectFormat(static_cast<LayoutExportFormats>(settings->GetLayoutExportFormat()));
|
SelectFormat(static_cast<LayoutExportFormats>(settings->GetLayoutExportFormat()));
|
||||||
|
}
|
||||||
|
catch (VException &e)
|
||||||
|
{
|
||||||
|
qDebug() << qUtf8Printable(e.ErrorMessage());
|
||||||
|
}
|
||||||
SetShowGrainline(settings->GetShowGrainline());
|
SetShowGrainline(settings->GetShowGrainline());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -785,12 +785,26 @@ void DialogSaveLayout::ReadSettings()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_mode != Draw::Layout)
|
if (m_mode != Draw::Layout)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
SelectFormat(static_cast<LayoutExportFormats>(settings->GetDetailExportFormat()));
|
SelectFormat(static_cast<LayoutExportFormats>(settings->GetDetailExportFormat()));
|
||||||
}
|
}
|
||||||
|
catch (VException &e)
|
||||||
|
{
|
||||||
|
qDebug() << qUtf8Printable(e.ErrorMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
SelectFormat(static_cast<LayoutExportFormats>(settings->GetLayoutExportFormat()));
|
SelectFormat(static_cast<LayoutExportFormats>(settings->GetLayoutExportFormat()));
|
||||||
|
}
|
||||||
|
catch (VException &e)
|
||||||
|
{
|
||||||
|
qDebug() << qUtf8Printable(e.ErrorMessage());
|
||||||
|
}
|
||||||
SetShowGrainline(settings->GetShowGrainline());
|
SetShowGrainline(settings->GetShowGrainline());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user