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