qDebug() << Q_FUNC_INFO;
if (!this->cleanedUp) {
+ qDebug() << "MainWindow: cleaning up";
this->cleanedUp = true;
emit aboutToQuit();
}
MainWindow::~MainWindow() {
- qDebug() << "~MainWindow";
+ qDebug() << "~MainWindow" << QThread::currentThreadId();
}
\ No newline at end of file
qDebug() << "~WindowManager";
m_cleanupThread->quit();
m_cleanupThread->wait();
- qDebug() << "Cleanup thread done";
+ qDebug() << "WindowManager: cleanup thread done" << QThread::currentThreadId();
}
// ######################## APPLICATION LIFECYCLE ########################
}
void WindowManager::close() {
- qDebug() << Q_FUNC_INFO;
+ qDebug() << Q_FUNC_INFO << QThread::currentThreadId();
for (const auto &window: m_windows) {
window->close();
}
torManager()->stop();
+ deleteLater();
+
qDebug() << "Calling QApplication::quit()";
QApplication::quit();
}
void WindowManager::closeWindow(MainWindow *window) {
- qDebug() << "closing Window";
+ qDebug() << "WindowManager: closing Window";
m_windows.removeOne(window);
// Move Wallet to a different thread for cleanup, so it doesn't block GUI thread
Wallet::~Wallet()
{
- qDebug("~Wallet: Closing wallet");
+ qDebug() << "~Wallet: Closing wallet" << QThread::currentThreadId();
pauseRefresh();
m_walletImpl->stop();
delete m_walletImpl;
m_walletImpl = nullptr;
- qDebug("m_walletImpl deleted");
+ qDebug() << "m_walletImpl deleted" << QThread::currentThreadId();
}