mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-22 23:06:18 +00:00
Merge with develop
This commit is contained in:
parent
e146348e03
commit
d8656a5578
4 changed files with 200 additions and 170 deletions
|
@ -323,6 +323,13 @@ void CDownloader::onHeadFinished()
|
|||
}
|
||||
}
|
||||
|
||||
// error when download is not yet ready
|
||||
else if (status == 307)
|
||||
{
|
||||
if (m_listener) m_listener->operationFail(tr("File is not available, please retry later (status code: %1)").arg(status));
|
||||
return;
|
||||
}
|
||||
|
||||
// other status
|
||||
else
|
||||
{
|
||||
|
|
|
@ -51,11 +51,13 @@ bool CFilesCleaner::exec()
|
|||
QStringList filter;
|
||||
filter << "*.string_cache";
|
||||
|
||||
// certificate should be in gamedev.bnp now
|
||||
filter << "*.pem";
|
||||
|
||||
if (dir.exists("packedsheets.bnp"))
|
||||
{
|
||||
filter << "*.packed_sheets";
|
||||
filter << "*.packed";
|
||||
filter << "*.pem";
|
||||
}
|
||||
|
||||
// temporary files
|
||||
|
|
|
@ -492,6 +492,13 @@ void COperationDialog::onProgressSuccess(qint64 total)
|
|||
void COperationDialog::onProgressFail(const QString &error)
|
||||
{
|
||||
QMessageBox::critical(this, tr("Error"), error);
|
||||
|
||||
{
|
||||
QMutexLocker locker(&m_abortingMutex);
|
||||
m_aborting = true;
|
||||
}
|
||||
|
||||
processNextStep();
|
||||
}
|
||||
|
||||
void COperationDialog::onDone()
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue