minor ui fixes

This commit is contained in:
Akash Mozumdar 2018-08-18 15:06:14 -04:00
parent 44a0367883
commit f1a2beef4f

View File

@ -64,7 +64,7 @@ MainWindow::MainWindow(QWidget *parent) :
connect(this, &MainWindow::ThreadOutputReceived, this, &MainWindow::ThreadOutput); connect(this, &MainWindow::ThreadOutputReceived, this, &MainWindow::ThreadOutput);
ReloadExtensions(); ReloadExtensions();
Host::Open(); Host::Open();
Host::AddConsoleOutput(L"NextHooker beta v2.1.2 by Artikash\r\nSource code and more information available under GPLv3 at https://github.com/Artikash/NextHooker"); Host::AddConsoleOutput(L"NextHooker beta v2.1.3 by Artikash\r\nSource code and more information available under GPLv3 at https://github.com/Artikash/NextHooker");
} }
MainWindow::~MainWindow() MainWindow::~MainWindow()
@ -175,7 +175,7 @@ void MainWindow::on_attachButton_clicked()
{ {
bool ok; bool ok;
QString process = QInputDialog::getItem(this, "Select Process", QString process = QInputDialog::getItem(this, "Select Process",
"If you don't see the process you want to inject, try running with admin rights\r\nYou can also just type in the process id if you know it", "If you don't see the process you want to inject, try running with admin rights\r\nYou can just type in the process id if you know it",
GetAllProcesses(), 0, true, &ok); GetAllProcesses(), 0, true, &ok);
if (!ok) return; if (!ok) return;
if (!Host::InjectProcess(process.split(":")[0].toInt())) Host::AddConsoleOutput(L"Failed to attach"); if (!Host::InjectProcess(process.split(":")[0].toInt())) Host::AddConsoleOutput(L"Failed to attach");