Fix for publish/subscribe error
[vicar] / src / vicar-lib / src / databaseutility.cpp
index 19ffdf7..638b6f0 100644 (file)
@@ -132,7 +132,7 @@ int DatabaseUtility::insertProfile(org::maemo::vicar::Profile profile){
     bool result = false;    
     if (profilesDB.isOpen()){
         bool continueInsert = true;
-        if (!this->tableExists()){
+        if (!this->tableExists("profiles")){
             continueInsert = this->createProfilesTable();
         }