Ticket #5482: remove_db.patch

File remove_db.patch, 484 bytes (added by tomimo@…, 16 years ago)

Always call the QSqlDatabase::removeDatabase() as we call addDatabase() in constructor and not in openDatabase() or such.

  • mythdbcon.cpp

    old new  
    3333        m_db = QSqlDatabase();  // forces a destroy and must be done before
    3434                                // removeDatabase() so that connections
    3535                                // and queries are cleaned up correctly
    36         QSqlDatabase::removeDatabase(m_name);
    3736    }
     37    QSqlDatabase::removeDatabase(m_name);
    3838}
    3939
    4040bool MSqlDatabase::isOpen()