From aee6385e1025f566f30b8507fd6589080af03490 Mon Sep 17 00:00:00 2001
From: gfdgd_xi <3025613752@qq.com>
Date: Sun, 5 May 2024 14:09:47 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95=E5=AE=89?=
 =?UTF-8?q?=E8=A3=85=E5=88=97=E8=A1=A8=E7=AC=AC=E4=B8=80=E4=B8=AA=E5=86=85?=
 =?UTF-8?q?=E6=A0=B8=E7=9A=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 AptSources/gxde-kernel-manager.list | 2 ++
 mainwindow.cpp                      | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

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;