Отложенная инициализация в Сервере (старт виджета)

This commit is contained in:
2025-11-06 21:49:15 +03:00
parent 2d3d4f82dd
commit c021421118
11 changed files with 9 additions and 33 deletions

View File

@@ -1,4 +1,3 @@
#include <QMessageBox>
#include <QCoreApplication>
#include <QSqlError>
#include <QDateTime>
@@ -16,12 +15,10 @@ bool InterfaceDataBaseLMS::connectionToDB()
{
if(!createConnection())
{
//QMessageBox::critical(ownerWidget, dbSettings.dbName, tr("Connection error") /*+ db->lastError().text()*/);
return false;
}
else
{
//QMessageBox::information(ownerWidget, dbName, tr("Connection is successful!"));
return true;
}
}
@@ -29,7 +26,6 @@ bool InterfaceDataBaseLMS::connectionToDB()
bool InterfaceDataBaseLMS::disConnectionFromDB()
{
deleteConnection();
//QMessageBox::information(ownerWidget, dbName, tr("Disconnection is successful!"));
return true;
}