diff --git a/AptSources/gxde-kernel-manager.list b/AptSources/gxde-kernel-manager.list index 2686994..6f2163d 100644 --- a/AptSources/gxde-kernel-manager.list +++ b/AptSources/gxde-kernel-manager.list @@ -1,2 +1,4 @@ deb [trusted=true] https://master.dl.sourceforge.net/project/gxde-kernel-manager/kernel/ ./ deb [trusted=true] https://kernel.gxde.gfdgdxi.top/ ./ +# CN Mirror +deb [trusted=true] http://gfdgdxi.v5.idcfengye.com/gxde-linux-kernel/ ./ diff --git a/mainwindow.cpp b/mainwindow.cpp index d394fc7..49d782d 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -73,7 +73,7 @@ void MainWindow::on_m_installButton_clicked() { QModelIndex list = ui->m_kernelShow->selectionModel()->currentIndex(); int row = list.row(); - if(row <= 0) { + if(row < 0) { // 未选中任何内容 QMessageBox::critical(this, tr("Error"), tr("Nothing to choose")); return; @@ -120,7 +120,7 @@ void MainWindow::on_m_removeButton_clicked() { QModelIndex list = ui->m_kernelShow->selectionModel()->currentIndex(); int row = list.row(); - if(row <= 0) { + if(row < 0) { // 未选中任何内容 QMessageBox::critical(this, tr("Error"), tr("Nothing to choose")); return;