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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user