mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-05-25 16:51:38 +00:00
Fixed PakTool dialog not having a parent assigned, fixed a crash when attempting to clone SCGN objects
This commit is contained in:
parent
c6e932e14b
commit
843ea96ceb
@ -107,6 +107,9 @@ public:
|
||||
return iLyr;
|
||||
}
|
||||
|
||||
if (mpArea->GetGeneratorLayer() == this)
|
||||
return mpArea->GetScriptLayerCount();
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -224,10 +224,10 @@ void CStartWindow::on_actionExtract_PAK_triggered()
|
||||
|
||||
if (!Pak.isEmpty())
|
||||
{
|
||||
CPakToolDialog::EResult Result = CPakToolDialog::Extract(Pak);
|
||||
CPakToolDialog::EResult Result = CPakToolDialog::Extract(Pak, 0, this);
|
||||
|
||||
if (Result == CPakToolDialog::eSuccess)
|
||||
Result = CPakToolDialog::DumpList(Pak);
|
||||
Result = CPakToolDialog::DumpList(Pak, 0, this);
|
||||
|
||||
if (Result == CPakToolDialog::eSuccess)
|
||||
QMessageBox::information(this, "Success", "Extracted pak successfully!");
|
||||
|
@ -371,7 +371,7 @@ bool CWorldEditor::SaveAndRepack()
|
||||
}
|
||||
|
||||
QString PakOut;
|
||||
CPakToolDialog::EResult Result = CPakToolDialog::Repack(CurrentGame(), mPakTarget, mPakFileList, mWorldDir, &PakOut);
|
||||
CPakToolDialog::EResult Result = CPakToolDialog::Repack(CurrentGame(), mPakTarget, mPakFileList, mWorldDir, &PakOut, this);
|
||||
|
||||
if (Result == CPakToolDialog::eError)
|
||||
QMessageBox::warning(this, "Error", "Failed to repack!");
|
||||
|
Loading…
x
Reference in New Issue
Block a user