projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for compiling with QCA on Qt5
[quassel.git]
/
src
/
core
/
core.cpp
diff --git
a/src/core/core.cpp
b/src/core/core.cpp
index
008c5b0
..
7068f84
100644
(file)
--- a/
src/core/core.cpp
+++ b/
src/core/core.cpp
@@
-380,13
+380,10
@@
bool Core::initStorage(const QString &backend, const QVariantMap &settings, bool
return false; // trigger setup process
if (storage->setup(settings))
return initStorage(backend, settings, false);
return false; // trigger setup process
if (storage->setup(settings))
return initStorage(backend, settings, false);
- // if
setup wasn't successfull we mark the backend as unavailable
+ // if
initialization wasn't successful, we quit to keep from coming up unconfigured
case Storage::NotAvailable:
case Storage::NotAvailable:
- qCritical() << "Selected storage backend is not available:" << backend;
- storage->deleteLater();
- _storageBackends.remove(backend);
- storage = 0;
- return false;
+ qCritical() << "FATAL: Selected storage backend is not available:" << backend;
+ exit(EXIT_FAILURE);
case Storage::IsReady:
// delete all other backends
_storageBackends.remove(backend);
case Storage::IsReady:
// delete all other backends
_storageBackends.remove(backend);