diff options
| author | Tannin <devnull@localhost> | 2015-03-18 19:41:11 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-03-18 19:41:11 +0100 |
| commit | 4a99cfe6ad0d5e68f0a8f6e1057babb7494a8c2d (patch) | |
| tree | 8c61a8235f2e671b1f513c9c363d9063b8c4ef5d /src/mainwindow.cpp | |
| parent | f134c7ab4cce6efb1a72bebe599ac0e71e8d0895 (diff) | |
bugfix: crash related to bad timing when filtering the mod list
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 362fffe5..56918759 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -256,6 +256,7 @@ MainWindow::MainWindow(const QString &exeName connect(ui->savegameList, SIGNAL(itemEntered(QListWidgetItem*)), this, SLOT(saveSelectionChanged(QListWidgetItem*)));
connect(ui->modList, SIGNAL(dropModeUpdate(bool)), m_OrganizerCore.modList(), SLOT(dropModeUpdate(bool)));
+
connect(ui->modList->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)), this, SLOT(modlistSelectionChanged(QModelIndex,QModelIndex)));
connect(m_ModListSortProxy, SIGNAL(filterActive(bool)), this, SLOT(modFilterActive(bool)));
connect(ui->modFilterEdit, SIGNAL(textChanged(QString)), m_ModListSortProxy, SLOT(updateFilter(QString)));
@@ -674,11 +675,10 @@ void MainWindow::createHelpWidget() buttonMenu->addAction(tr("About Qt"), qApp, SLOT(aboutQt()));
}
-
void MainWindow::modFilterActive(bool filterActive)
{
if (filterActive) {
- m_OrganizerCore.modList()->setOverwriteMarkers(std::set<unsigned int>(), std::set<unsigned int>());
+// m_OrganizerCore.modList()->setOverwriteMarkers(std::set<unsigned int>(), std::set<unsigned int>());
ui->modList->setStyleSheet("QTreeView { border: 2px ridge #f00; }");
} else if (ui->groupCombo->currentIndex() != 0) {
ui->modList->setStyleSheet("QTreeView { border: 2px ridge #337733; }");
@@ -1818,7 +1818,7 @@ void MainWindow::setESPListSorting(int index) void MainWindow::refresher_progress(int percent)
{
if (percent == 100) {
- m_RefreshProgress->setVisible(false);
+// m_RefreshProgress->setVisible(false);
} else if (!m_RefreshProgress->isVisible()) {
m_RefreshProgress->setVisible(true);
m_RefreshProgress->setRange(0, 100);
@@ -3784,7 +3784,7 @@ void MainWindow::modDetailsUpdated(bool) break;
}
}
-// m_RefreshProgress->setVisible(false);
+ m_RefreshProgress->setVisible(false);
} else {
m_RefreshProgress->setValue(m_RefreshProgress->maximum() - m_ModsToUpdate);
}
|
