diff --git a/GUI/mainwindow.cpp b/GUI/mainwindow.cpp index c94c238..c523829 100644 --- a/GUI/mainwindow.cpp +++ b/GUI/mainwindow.cpp @@ -50,6 +50,11 @@ MainWindow::~MainWindow() Host::Close(); } +void MainWindow::closeEvent(QCloseEvent*) +{ + QCoreApplication::quit(); // Need to do this to kill any windows that might've been made by extensions +} + void MainWindow::AddProcess(unsigned processId) { processCombo->addItem(QString::number(processId, 16).toUpper() + ": " + GetModuleName(processId)); diff --git a/GUI/mainwindow.h b/GUI/mainwindow.h index 9494492..a9bd8c4 100644 --- a/GUI/mainwindow.h +++ b/GUI/mainwindow.h @@ -50,6 +50,7 @@ private: DWORD GetSelectedProcessId(); std::unordered_map GetMiscInfo(TextThread* thread); QVector GetAllHooks(DWORD processId); + void closeEvent(QCloseEvent*); Ui::MainWindow* ui; QSettings settings = QSettings("Textractor.ini", QSettings::IniFormat);