Make selections in bufferviews (mostly) synchronous again.
[quassel.git] / core / sqlitestorage.cpp
index b2804dd..af5767d 100644 (file)
@@ -233,7 +233,8 @@ UserId SqliteStorage::validateUser(QString user, QString password) {
   if(query.first()) {
     return query.value(0).toUInt();
   } else {
-    return 0;
+    throw AuthError();
+    //return 0;
   }
 }
 
@@ -265,7 +266,6 @@ void SqliteStorage::createBuffer(UserId user, QString network, QString buffer) {
 
   if(createBufferQuery->lastError().isValid()) {
     if(createBufferQuery->lastError().number() == 19) { // Null Constraint violation 
-      qDebug() << createBufferQuery->lastError().text();
       createNetworkQuery->bindValue(":userid", user);
       createNetworkQuery->bindValue(":networkname", network);
       createNetworkQuery->exec();