fix Qt Database error message when close the app

This commit is contained in:
doitux
2010-07-13 19:13:38 +00:00
parent a78a9e80ea
commit b34dcdc597
8 changed files with 1724 additions and 1693 deletions
+5 -5
View File
@@ -22,9 +22,9 @@
Replay::Replay() : replaySqliteLogDb(0)
{
replaySqliteLogDb = new QSqlDatabase();
*replaySqliteLogDb = QSqlDatabase::addDatabase("QSQLITE");
// replaySqliteLogDb = new QSqlDatabase();
//
// *replaySqliteLogDb = QSqlDatabase::addDatabase("QSQLITE");
//replaySqliteLogDb->setDatabaseName(myLogDir->absolutePath()+"/pokerth-log-"+currentTime.toString("yyyy-MM-dd_hh.mm.ss")+".pdb");
//if(!mySqliteLogDb->open()) {
// QMessageBox::critical(0, tr("ERROR"),mySqliteLogDb->lastError().text().toUtf8().data(), QMessageBox::Cancel);
@@ -35,7 +35,7 @@ Replay::Replay() : replaySqliteLogDb(0)
Replay::~Replay()
{
replaySqliteLogDb->close();
delete replaySqliteLogDb;
// replaySqliteLogDb->close();
// delete replaySqliteLogDb;
}