summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2013-07-13 10:10:46 +0200
committerTannin <devnull@localhost>2013-07-13 10:10:46 +0200
commit8d34ae34135cfd495556a059c449a5f11ca6212c (patch)
tree555ffc51d1e084ac148ccb4b928898ab1ed4fc62 /src/mainwindow.cpp
parent849a0a0ef40c9fa1feb15b880aa52fccdd84f234 (diff)
- some fixes to the refreshing behaviour
- "fix" buttons in problems dialog are now actually functional - python proxy now has diagnosis functionality to warn user if correct proxy version is not available - python proxy now has a configurable python path
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index b95be745..f001f3b2 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1318,8 +1318,8 @@ void MainWindow::activateSelectedProfile()
connect(m_CurrentProfile, SIGNAL(modStatusChanged(uint)), this, SLOT(modStatusChanged(uint)));
- refreshModList();
refreshSaveList();
+ refreshModList();
}
@@ -1484,7 +1484,6 @@ void MainWindow::refreshDirectoryStructure()
m_DirectoryRefresher.setMods(activeModList);
statusBar()->show();
-// m_RefreshProgress->setVisible(true);
m_RefreshProgress->setRange(0, 100);
QTimer::singleShot(0, &m_DirectoryRefresher, SLOT(refresh()));
@@ -1552,7 +1551,6 @@ void MainWindow::refreshDataTree()
void MainWindow::refreshSaveList()
{
- refreshLists();
ui->savegameList->clear();
QDir savesDir;
@@ -2191,7 +2189,9 @@ void MainWindow::directory_refreshed()
return;
}
m_DirectoryUpdate = false;
- refreshLists();
+ if (m_CurrentProfile != NULL) {
+ refreshLists();
+ }
// m_RefreshProgress->setVisible(false);
statusBar()->hide();
}
@@ -2975,7 +2975,8 @@ void MainWindow::saveCategories()
saveCategoriesFromMenu(menu, mapToModel(&m_ModList, selected.at(i)).row());
}
//m_ModList.notifyChange(min, max);
- refreshModList();
+ m_ModList.notifyChange(-1);
+// refreshModList();
// find mods by their name because indices are invalidated
QAbstractItemModel *model = ui->modList->model();