mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-07-18 03:22:20 +08:00
fix: 修复应用详情页卸载应用后点击“安装”按钮后客户端崩溃问题
应用卸载后,按钮文字被设置为“安装”,导致点击按钮时判断要从下载列表中找到对应 DownloadItem 并触发安装;此时列表中并不存在此应用,list 访问下标越界导致崩溃 Log: 卸载后将按钮文字设置为“下载”避免该问题
This commit is contained in:
parent
c636e0882b
commit
cc54014b29
@ -363,7 +363,7 @@ void AppIntoPage::on_pushButton_3_clicked()
|
||||
|
||||
if (check.readAllStandardOutput().isEmpty())
|
||||
{
|
||||
ui->downloadButton->setText(tr("Install"));
|
||||
ui->downloadButton->setText(tr("Download"));
|
||||
ui->pushButton_3->hide();
|
||||
|
||||
updatesEnabled();
|
||||
|
Loading…
x
Reference in New Issue
Block a user