mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-23 16:22:58 +03:00
return value has been fixed
This commit is contained in:
parent
289ad33c07
commit
f1903147a6
@ -22,8 +22,8 @@ int main(int argc, char *argv[])
|
|||||||
QString designerTranslation = QLocale(manager.getCurrentDefaultLanguage()).name();
|
QString designerTranslation = QLocale(manager.getCurrentDefaultLanguage()).name();
|
||||||
|
|
||||||
if (limeReportTranslator.load("limereport_"+designerTranslation, translationPath)){
|
if (limeReportTranslator.load("limereport_"+designerTranslation, translationPath)){
|
||||||
qtBaseTranslator.load("qtbase_" + designerTranslation, translationPath);
|
static_cast<void>(qtBaseTranslator.load("qtbase_" + designerTranslation, translationPath));
|
||||||
qtDesignerTranslator.load("designer_"+designerTranslation,translationPath);
|
static_cast<void>(qtDesignerTranslator.load("designer_"+designerTranslation,translationPath));
|
||||||
|
|
||||||
a.installTranslator(&qtBaseTranslator);
|
a.installTranslator(&qtBaseTranslator);
|
||||||
a.installTranslator(&qtDesignerTranslator);
|
a.installTranslator(&qtDesignerTranslator);
|
||||||
|
@ -80,7 +80,8 @@ bool XMLWriter::setContent(QString fileName)
|
|||||||
{
|
{
|
||||||
QFile xmlFile(fileName);
|
QFile xmlFile(fileName);
|
||||||
if (xmlFile.open(QFile::ReadOnly)){
|
if (xmlFile.open(QFile::ReadOnly)){
|
||||||
return m_doc->setContent(&xmlFile);
|
m_doc->setContent(&xmlFile);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user