diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2018-07-16 15:36:06 -0500 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2018-07-16 15:46:44 -0500 |
| commit | a830f3e09efe60d10dc7d97fa645a164f54994a0 (patch) | |
| tree | b7145994051aad0a21fb6396a763dc6339b78536 /src | |
| parent | eaf3655492e34a5b613a3f75576c872f8f932d17 (diff) | |
Allow "unignore update" to work with multiple mods
Diffstat (limited to 'src')
| -rw-r--r-- | src/mainwindow.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 19f61ae8..f70e66a6 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -3123,8 +3123,17 @@ void MainWindow::ignoreUpdate() { void MainWindow::unignoreUpdate()
{
- ModInfo::Ptr info = ModInfo::getByIndex(m_ContextRow);
- info->ignoreUpdate(false);
+ 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(false);
+ }
+ }
+ else {
+ ModInfo::Ptr info = ModInfo::getByIndex(m_ContextRow);
+ info->ignoreUpdate(false);
+ }
}
void MainWindow::addPrimaryCategoryCandidates(QMenu *primaryCategoryMenu,
|
