Skip to content

Commit

Permalink
🚧 km-window: fix removal of packages
Browse files Browse the repository at this point in the history
  • Loading branch information
vnepogodin committed Jun 17, 2024
1 parent f16e499 commit 101b7d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/km-window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 101b7d3

Please sign in to comment.