mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 04:42:03 +08:00
fix: 消除qt警告
This commit is contained in:
@@ -132,10 +132,10 @@ void DownloadItem::install(int t)
|
||||
}
|
||||
|
||||
QProcess isInstall;
|
||||
isInstall.start("dpkg -s " + pkgName);
|
||||
isInstall.start("dpkg -s " + pkgName, QStringList());
|
||||
isInstall.waitForFinished(180*1000); // 默认超时 3 分钟
|
||||
int error = QString::fromStdString(isInstall.readAllStandardError().toStdString()).length();
|
||||
if(error == 0)
|
||||
if(error == 0 && haveError)
|
||||
{
|
||||
ui->pushButton_install->hide();
|
||||
Utils::sendNotification("spark-store",tr("Spark Store"),ui->label->text() + " " + tr("Installation complete."));
|
||||
|
||||
@@ -16,7 +16,6 @@ void SmoothListWidget::wheelEvent(QWheelEvent *e)
|
||||
}
|
||||
void SmoothListWidget::onSliderChanged(int p)
|
||||
{
|
||||
int startRow = count();
|
||||
if (p == vScrollBar->maximum())
|
||||
{
|
||||
emit reachedBottom(); // 1
|
||||
|
||||
Reference in New Issue
Block a user