Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Commit 78ec7f8

Browse files
committed
.
1 parent 3f0cd0d commit 78ec7f8

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tools/qdatasyncserver/app.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,16 @@ void App::quitting()
163163
void App::dbDone(bool ok)
164164
{
165165
dbRdy = true;
166-
if(!ok)
166+
if(!ok) {
167167
lastError = QStringLiteral("Failed to setup database. Check error log for details.");
168+
if(!currentTerminal) {
169+
QTimer::singleShot(5000, this, [](){
170+
qApp->exit(EXIT_FAILURE);
171+
});
172+
}
173+
}
168174
if(currentTerminal)
169175
completeStart();
170-
else {
171-
QTimer::singleShot(5000, this, [](){
172-
qApp->exit(EXIT_FAILURE);
173-
});
174-
}
175176
}
176177

177178
void App::completeStart()

0 commit comments

Comments
 (0)