From 8d34ae34135cfd495556a059c449a5f11ca6212c Mon Sep 17 00:00:00 2001 From: Tannin Date: Sat, 13 Jul 2013 10:10:46 +0200 Subject: - 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 --- src/mainwindow.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/mainwindow.cpp') 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(); -- cgit v1.3.1