[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/krecipes/src
From:       Jason Kivlighn <confederacy2 () excite ! com>
Date:       2004-05-13 5:02:24
Message-ID: 20040513050224.89146E61 () office ! kde ! org
[Download RAW message or body]

CVS commit by jkivlighn: 

Fix sqlite-only builds.  Thanks to those who pointed this out to me :)


  M +5 -5      krecipesview.cpp   1.141


--- kdenonbeta/krecipes/src/krecipesview.cpp  #1.140:1.141
@@ -888,7 +888,7 @@ void KrecipesView::initDatabase(KConfig 
                 dbType=checkCorrectDBType(config);
                 
-                
-                
-                if(dbType=="MySQL")  // First case, MySQL
+                if (0) {}
+                #if HAVE_MYSQL
+                else if(dbType=="MySQL")  // First case, MySQL
                         {
                         config->setGroup("Server");
@@ -904,7 +904,7 @@ void KrecipesView::initDatabase(KConfig 
                         database=new MySQLRecipeDB(host,user,pass,dbname);
                         }
+                #endif //HAVE_MYSQL
                 
                 #if HAVE_SQLITE
-                
                 else if (dbType=="SQLite")// The user chose SQLite this time
                         {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic