[mythtv-commits] mythtv commit: r17990 - in trunk/mythtv/libs by nigel
mythtv at cvs.mythtv.org
mythtv at cvs.mythtv.org
Thu Jul 31 04:41:04 UTC 2008
Author: nigel
Date: 2008-07-31 04:41:03 +0000 (Thu, 31 Jul 2008)
New Revision: 17990
Changeset: http://cvs.mythtv.org/trac/changeset/17990
Modified:
trunk/mythtv/libs/libmyth/mythcontext.cpp
trunk/mythtv/libs/libmythdb/mythdbcon.cpp
Log:
Tidy the "error reduction while DB bootstrapping" hacks:
1) Anduin's elegant Qt4 bug workaround (return an empty database in InitCon())
2) Instead of multiple checks throughout the database layer, simply use the
impotent database returned by InitCon() (which luckily prints no errors)
3) Use the newish IgnoreDatabase() setting to decimate the number of lookups.
This could be tidied up further by having a bool to set/clear the impotence
(e.g. MSqlDatabase::SetPretendGoodDatabase(bool) ),
but for now this should be good enough, and saves a big recompile :-)
More information about the mythtv-commits
mailing list