From 101b7d330a0c66fd8868c17fac0ae3b53230a1d9 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Tue, 18 Jun 2024 01:43:40 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20km-window:=20fix=20removal=20of?= =?UTF-8?q?=20packages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/km-window.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/km-window.cpp b/src/km-window.cpp index 5fde40d..b33df07 100644 --- a/src/km-window.cpp +++ b/src/km-window.cpp @@ -309,7 +309,9 @@ void MainWindow::build_change_list(QTreeWidgetItem* item) noexcept { return; } - if (item->checkState(0) == Qt::Checked) { + if (immutable == "true" && item->checkState(0) == Qt::Checked) { + m_change_list.removeOne(item_text); + } else if (item->checkState(0) == Qt::Checked) { m_ui->ok->setEnabled(true); m_change_list.append(item_text); } else {