summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorLostDragonist <lost.dragonist@gmail.com>2018-07-16 15:35:41 -0500
committerLostDragonist <lost.dragonist@gmail.com>2018-07-16 15:46:44 -0500
commiteaf3655492e34a5b613a3f75576c872f8f932d17 (patch)
treef123905e86e87abfb43910c0a6fbd49eb347c65b /src/mainwindow.cpp
parent952f1fe8cd6dda5f97fd29fce9e7e8372093c3f4 (diff)
Allow "ignore update" to work with multiple mods
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index dc4ede28..19f61ae8 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -3108,8 +3108,17 @@ void MainWindow::changeVersioningScheme() {
}
void MainWindow::ignoreUpdate() {
- ModInfo::Ptr info = ModInfo::getByIndex(m_ContextRow);
- info->ignoreUpdate(true);
+ QItemSelectionModel *selection = ui->modList->selectionModel();
+ if (selection->hasSelection() && selection->selectedRows().count() > 1) {
+ for (QModelIndex idx : selection->selectedRows()) {
+ ModInfo::Ptr info = ModInfo::getByIndex(idx.data(Qt::UserRole + 1).toInt());
+ info->ignoreUpdate(true);
+ }
+ }
+ else {
+ ModInfo::Ptr info = ModInfo::getByIndex(m_ContextRow);
+ info->ignoreUpdate(true);
+ }
}
void MainWindow::unignoreUpdate()