make sure to delete QDebug before termination

This commit is contained in:
Gerhard Hoffmann 2025-04-11 12:32:30 +02:00
parent cbb81b7260
commit 2ab485454c

View File

@ -55,6 +55,8 @@ int main(int argc, char **argv) {
QString connectionStatus{internal::ISMAS_NOT_CONNECTED};
QString updateRequestStatus{internal::UPDATE_NOT_REQUESTED};
{
QDebug debug = qCritical();
int tries = 10;
@ -113,7 +115,7 @@ int main(int argc, char **argv) {
if (internal::customerRepoExists() == false) {
// if the customer repository does not exists, it does not matter is
// ISMAS is connected or how the setting for the WAIT-button is.
updateRequestStatus = internal::NO_CUSTOMER_REPOSITORY;
updateRequestStatus = internal::UPDATE_INITIAL;
} else {
if (connectionStatus == internal::ISMAS_CONNECTED) {
if (std::optional<QString> result
@ -172,6 +174,7 @@ int main(int argc, char **argv) {
if (parser.isSet(ismasConnectOption)) {
debug.noquote() << connectionStatus;
}
}
return exitCode;
}