From b8b9426411ebb78b1243fda7788d18325da6646a Mon Sep 17 00:00:00 2001 From: parax0 Date: Mon, 21 Mar 2016 18:23:25 -0600 Subject: [PATCH] Fixed crash when repacking paks --- src/Editor/CPakToolDialog.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Editor/CPakToolDialog.h b/src/Editor/CPakToolDialog.h index 63fb3050..4b72c5f0 100644 --- a/src/Editor/CPakToolDialog.h +++ b/src/Editor/CPakToolDialog.h @@ -132,9 +132,9 @@ private slots: mSetMax = true; } - setValue(Cur); setLabelText(QString("%1 file %2 of %3...").arg(mMode == eExtract ? "Extracting" : "Repacking").arg(Cur).arg(Count)); setWindowTitle(labelText()); + setValue(Cur); } update(); @@ -145,6 +145,7 @@ private slots: void PakToolFinished(int ExitCode) { + while (mUpdating) {} done(ExitCode == 0 ? eSuccess : eError); }