mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Рефакт
This commit is contained in:
@@ -6,6 +6,9 @@
|
||||
#include <QMessageBox>
|
||||
#include <QDomDocument>
|
||||
|
||||
const QString DataBaseLMS::TypeUserDBInstructor = "instructor";
|
||||
const QString DataBaseLMS::TypeUserDBTrainee = "trainee";
|
||||
|
||||
DataBaseLMS::DataBaseLMS(QWidget *ownerWidget):
|
||||
db(nullptr),
|
||||
transactionBegined(false),
|
||||
@@ -98,7 +101,7 @@ DataBaseSettings DataBaseLMS::getDataBaseSettings()
|
||||
QFile file("config/settings.xml");
|
||||
if(!file.open(QIODevice::ReadOnly))
|
||||
{
|
||||
QMessageBox::critical(nullptr, "Attention!", "The file could not be opened: config/settings.xml");
|
||||
QMessageBox::critical(ownerWidget, "Attention!", "The file could not be opened: config/settings.xml");
|
||||
return settings;
|
||||
}
|
||||
QXmlStreamReader xmlReader(&file);
|
||||
|
||||
Reference in New Issue
Block a user