kill everything when mainwindow is closed

This commit is contained in:
Akash Mozumdar 2018-11-01 18:47:46 -04:00
parent ee0a8c4887
commit 5caf42a6b1
2 changed files with 6 additions and 0 deletions

View File

@ -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));

View File

@ -50,6 +50,7 @@ private:
DWORD GetSelectedProcessId();
std::unordered_map<std::string, int64_t> GetMiscInfo(TextThread* thread);
QVector<HookParam> GetAllHooks(DWORD processId);
void closeEvent(QCloseEvent*);
Ui::MainWindow* ui;
QSettings settings = QSettings("Textractor.ini", QSettings::IniFormat);