From kde-commits Mon Feb 28 23:19:50 2011 From: Christophe Giboudeaux Date: Mon, 28 Feb 2011 23:19:50 +0000 To: kde-commits Subject: =?utf-8?q?=5Bakonadi/1=2E5=5D_server/src/storage=3A_Make_sure_we?= Message-Id: <20110228231950.EEC9CA60C9 () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=129893523926740 Git commit dc910403152688ef4d79dddb29644b3c3de42332 by Christophe Giboudeaux. Committed on 11/01/2011 at 14:54. Pushed by cgiboudeaux into branch '1.5'. Make sure we use the default DB name when using the internal server BUG 262218 (cherry picked from commit 5a19a29162723a22088d4d91fcab1b833c54cc7f) M +3 -1 server/src/storage/dbconfigmysql.cpp http://commits.kde.org/akonadi/dc910403152688ef4d79dddb29644b3c3de42332 diff --git a/server/src/storage/dbconfigmysql.cpp b/server/src/storage/dbconfigmysql.cpp index 9f6ad05..2910700 100644 --- a/server/src/storage/dbconfigmysql.cpp +++ b/server/src/storage/dbconfigmysql.cpp @@ -111,8 +111,10 @@ bool DbConfigMysql::init( QSettings &settings ) settings.endGroup(); // verify settings and apply permanent changes (written out below) - if ( mInternalServer ) + if ( mInternalServer ) { mConnectionOptions = defaultOptions; + mDatabaseName = defaultDbName; + } if ( mInternalServer && (mServerPath.isEmpty() || !QFile::exists( mServerPath ) ) ) mServerPath = defaultServerPath;