Commit 91e4d218 authored by Lisa's avatar Lisa

Use the new isValid() method to check validity of databases in listRepo.

parent ddc07122
......@@ -311,7 +311,7 @@ void SyncOperation::listRepo(const QString &repo)
if (!db || !db->database()) {
if (!db || !db->isValid()) {
QTextStream err(stderr);
err << Akabei::errorPrefix << QObject::tr("No repository found!") << endl;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment