diff options
| author | Tannin <devnull@localhost> | 2013-06-29 18:04:10 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-06-29 18:04:10 +0200 |
| commit | fe37b48dffd8edcd6e30f4e304d3e27a731ac8ae (patch) | |
| tree | e996c5d329d9abf77bcd12af4d05238fd6ebca1f /src/selfupdater.cpp | |
| parent | f8c683f700a3fff30540ff343df2bfba15080e86 (diff) | |
- caching of downloadwidgets to fix performance problem, currently broken and disabled
- added new state for downloads "uninstalled" for mods that were at one point installed and then removed
- user-configured server preference is now used
- updated tutorial to account for removal of integrated browser
- reverted to qt 4
- using performance optimised findfirstfile on win vista and up
- bugfix: it was possible to disable all columns of the mod list
- bugfix: hook.dll doesn't load on win xp
Diffstat (limited to 'src/selfupdater.cpp')
| -rw-r--r-- | src/selfupdater.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/selfupdater.cpp b/src/selfupdater.cpp index 78c7dea7..421fbeab 100644 --- a/src/selfupdater.cpp +++ b/src/selfupdater.cpp @@ -35,6 +35,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include <QProcess> #include <QApplication> #include <util.h> +#include <boost/bind.hpp> using namespace MOBase; @@ -449,7 +450,9 @@ void SelfUpdater::nxmDownloadURLsAvailable(int, int, QVariant userData, QVariant m_UpdateRequestID = -1; QVariantList serverList = resultData.toList(); if (serverList.count() != 0) { - qSort(serverList.begin(), serverList.end(), DownloadManager::ServerByPreference); + std::map<QString, int> dummy; + qSort(serverList.begin(), serverList.end(), boost::bind(&DownloadManager::ServerByPreference, dummy, _1, _2)); + QVariantMap dlServer = serverList.first().toMap(); |
