summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-12-09 13:08:58 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2019-12-09 13:08:58 -0500
commit8d9a62a87dafd87381829b00b85753db510eef2b (patch)
treed28b27d0a44cec30038a6e6b4920b0ea5ebfccd2 /src/mainwindow.cpp
parentb9fd1092c62f728ff55879ff98be2cddbb2f0610 (diff)
moved the conflicts column back to its proper position in the enum
removed unnecessary compat code
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 44011e5f..b5900c6c 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -178,7 +178,6 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include <stdexcept>
#include <sstream>
#include <utility>
-#include <iterator>
#ifdef TEST_MODELS
#include "modeltest.h"
@@ -528,8 +527,6 @@ void MainWindow::setupModList()
ui->modList->header()->resizeSection(column, sectionSize);
}
} else {
- fixConflictsColumn();
-
// hide these columns by default
ui->modList->header()->setSectionHidden(ModList::COL_CONTENT, true);
ui->modList->header()->setSectionHidden(ModList::COL_MODID, true);
@@ -551,25 +548,6 @@ void MainWindow::setupModList()
ui->modList->installEventFilter(m_OrganizerCore.modList());
}
-void MainWindow::fixConflictsColumn()
-{
- // the conflicts column should sit to the left of the flags column, but its
- // enum is at the end to preserve compatibility
- //
- // this is called when updating from 2.2.1, or when there is no state saved
- // for the mod list, so it's free to do whatever it wants with the column
-
- const auto flags = ui->modList->header()->visualIndex(ModList::COL_FLAGS);
- const auto conflicts = ui->modList->header()->visualIndex(ModList::COL_CONFLICTFLAGS);
-
- // this can be called twice when migrating from 2.2.1: once in
- // processUpdates() and again in setupModList() because the geometry names in
- // the ini have changed; to a simple check to see if the column has been moved
- if (conflicts > flags) {
- ui->modList->header()->moveSection(conflicts, flags);
- }
-}
-
void MainWindow::resetActionIcons()
{
// this is a bit of a hack
@@ -2277,10 +2255,6 @@ void MainWindow::processUpdates() {
ui->downloadView->header()->hideSection(i);
}
}
-
- if (lastVersion < QVersionNumber(2, 2, 2)) {
- fixConflictsColumn();
- }
}
if (currentVersion < lastVersion) {