From c797af8b7638093f866f7106c22ae46eb2adde0c Mon Sep 17 00:00:00 2001 From: Tannin Date: Mon, 8 Jun 2015 18:28:59 +0200 Subject: increased ui responsiveness while integrated loot is running --- src/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 3265981d..952c3178 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -4361,7 +4361,7 @@ void MainWindow::on_bossButton_clicked() if (loot != INVALID_HANDLE_VALUE) { bool isJobHandle = true; ULONG lastProcessID; - DWORD res = ::MsgWaitForMultipleObjects(1, &loot, false, 1000, QS_KEY | QS_MOUSE); + DWORD res = ::MsgWaitForMultipleObjects(1, &loot, false, 100, QS_KEY | QS_MOUSE); while ((res != WAIT_FAILED) && (res != WAIT_OBJECT_0)) { if (isJobHandle) { if (::QueryInformationJobObject(loot, JobObjectBasicProcessIdList, &info, sizeof(info), &retLen) > 0) { @@ -4401,7 +4401,7 @@ void MainWindow::on_bossButton_clicked() std::string lootOut = readFromPipe(stdOutRead); processLOOTOut(lootOut, errorMessages, dialog); - res = ::MsgWaitForMultipleObjects(1, &loot, false, 1000, QS_KEY | QS_MOUSE); + res = ::MsgWaitForMultipleObjects(1, &loot, false, 100, QS_KEY | QS_MOUSE); } std::string remainder = readFromPipe(stdOutRead).c_str(); -- cgit v1.3.1