Create "shutdown" message to find how far we get if swift hangs during shutdown

This commit is contained in:
Klaus Basan
2020-03-29 17:09:09 +02:00
committed by Mat Sutcliffe
parent 6eb767f938
commit 0ee522426a
3 changed files with 24 additions and 2 deletions

View File

@@ -17,6 +17,7 @@
#include <stdlib.h>
#include <QApplication>
#include <QTextStream>
using namespace BlackGui;
using namespace BlackMisc;
@@ -49,6 +50,13 @@ int main(int argc, char *argv[])
SwiftGuiStd w(windowMode);
w.show();
int r = a.exec();
const int r = a.exec();
// log we are really closing
QTextStream ts(stdout);
ts << "swift is closing now ......\n";
ts.flush();
// bye
return r;
}