mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-06-06 15:09:50 +08:00
fix: 修复安装失败判断条件错误问题
原始判断条件将 QString 和 bool 类型函数返回值进行比较,可能存在问题 Qt5 中比较结果始终为 false,不会认为安装失败 Log: 判断输出包含 "OMG-IT-GOES-WRONG" 关键词则认为安装失败
This commit is contained in:
parent
d6bc2a96a7
commit
bf8eaf5680
@ -198,7 +198,7 @@ void DownloadItem::slotAsyncInstall(int t)
|
||||
for (int i = 0; i < everyOut.size(); i++)
|
||||
{
|
||||
tempOutput = everyOut[i];
|
||||
if (everyOut[i].left(2) == tempOutput.contains("OMG-IT-GOES-WRONG"))
|
||||
if (tempOutput.contains("OMG-IT-GOES-WRONG"))
|
||||
{
|
||||
haveError = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user