diff options
| author | Tannin <devnull@localhost> | 2015-03-09 12:18:25 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-03-09 12:18:25 +0100 |
| commit | 8c0756bd9d87e8394d49e7611532002eecbc220a (patch) | |
| tree | 7981c7cbe5741f542067f7ea44ad27ac68c0a08f /src/mainwindow.cpp | |
| parent | 026b97835e6f3a4ab0f0e760318c1c36257feb60 (diff) | |
- bugfix: changing the highlight in the modlist didn't always prompt an immediate update of overwrite markers
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 9aa26db6..362fffe5 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1367,7 +1367,7 @@ void MainWindow::updateBSAList(const QStringList &defaultArchives, const QString std::sort(items.begin(), items.end(), BySortValue);
- for (std::vector<std::pair<UINT32, QTreeWidgetItem*> >::iterator iter = items.begin(); iter != items.end(); ++iter) {
+ for (auto iter = items.begin(); iter != items.end(); ++iter) {
int originID = iter->second->data(1, Qt::UserRole).toInt();
FilesOrigin origin = m_OrganizerCore.directoryStructure()->getOriginByID(originID);
@@ -1400,6 +1400,7 @@ void MainWindow::checkBSAList() if (archives != nullptr) {
ui->bsaList->blockSignals(true);
+ ON_BLOCK_EXIT([&] () { ui->bsaList->blockSignals(false); });
QStringList defaultArchives = archives->archives(m_OrganizerCore.currentProfile());
@@ -1433,8 +1434,6 @@ void MainWindow::checkBSAList() } else {
ui->tabWidget->setTabIcon(1, QIcon());
}
-
- ui->bsaList->blockSignals(false);
}
}
|
