mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 08:43:08 -07:00
- Removed useless mutex in GUI
- started to optimize headers includes for compilation speed
This commit is contained in:
parent
c8c53e2812
commit
0db60065c0
7 changed files with 88 additions and 85 deletions
|
@ -27,7 +27,6 @@
|
|||
#include <QTcpServer>
|
||||
#include <QTcpSocket>
|
||||
#include <QCloseEvent>
|
||||
#include <QMutexLocker>
|
||||
#include <QShortcut>
|
||||
|
||||
#include <libtorrent/extensions/metadata_transfer.hpp>
|
||||
|
@ -45,6 +44,7 @@
|
|||
#include "rss_imp.h"
|
||||
#include "FinishedTorrents.h"
|
||||
#include "allocationDlg.h"
|
||||
#include "bittorrent.h"
|
||||
|
||||
/*****************************************************
|
||||
* *
|
||||
|
@ -542,7 +542,6 @@ void GUI::sortProgressColumnDelayed() {
|
|||
void GUI::updateDlList(bool force){
|
||||
char tmp[MAX_CHAR_TMP];
|
||||
char tmp2[MAX_CHAR_TMP];
|
||||
QMutexLocker lock(&DLListAccess);
|
||||
// update global informations
|
||||
snprintf(tmp, MAX_CHAR_TMP, "%.1f", BTSession->getPayloadUploadRate()/1024.);
|
||||
snprintf(tmp2, MAX_CHAR_TMP, "%.1f", BTSession->getPayloadDownloadRate()/1024.);
|
||||
|
@ -726,7 +725,6 @@ void GUI::sortDownloadListString(int index, Qt::SortOrder sortOrder){
|
|||
}
|
||||
|
||||
void GUI::sortDownloadList(int index, Qt::SortOrder startSortOrder, bool fromLoadColWidth){
|
||||
QMutexLocker lock(&DLListAccess);
|
||||
qDebug("Called sort download list");
|
||||
static Qt::SortOrder sortOrder = startSortOrder;
|
||||
if(!fromLoadColWidth && downloadList->header()->sortIndicatorSection() == index){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue