mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-28 13:28:50 +03:00
- Force lists refresh before initially displaying the window to avoid lag
- Removed session tweaking on exit since it does not have any effect
This commit is contained in:
parent
713c80451e
commit
87eee7029d
3 changed files with 3 additions and 10 deletions
|
@ -231,6 +231,8 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis
|
|||
QMainWindow::statusBar()->addPermanentWidget(upSpeedLbl);
|
||||
QMainWindow::statusBar()->addPermanentWidget(statusSep4);
|
||||
QMainWindow::statusBar()->addPermanentWidget(ratioLbl);
|
||||
// Force list update before showing
|
||||
updateLists(true);
|
||||
if(!settings.value(QString::fromUtf8("Preferences/General/StartMinimized"), false).toBool()) {
|
||||
show();
|
||||
}
|
||||
|
|
|
@ -87,15 +87,6 @@ bittorrent::~bittorrent() {
|
|||
/*saveDHTEntry();
|
||||
saveSessionState();
|
||||
saveFastResumeData();*/
|
||||
// Set Session settings
|
||||
session_settings ss;
|
||||
ss.tracker_receive_timeout = 1;
|
||||
ss.stop_tracker_timeout = 1;
|
||||
ss.tracker_completion_timeout = 1;
|
||||
ss.piece_timeout = 1;
|
||||
ss.peer_timeout = 1;
|
||||
ss.urlseed_timeout = 1;
|
||||
s->set_settings(ss);
|
||||
// Disable directory scanning
|
||||
disableDirectoryScanning();
|
||||
// Delete our objects
|
||||
|
|
|
@ -93,7 +93,7 @@ DEFINES += NDEBUG
|
|||
icon192
|
||||
}
|
||||
QMAKE_CXXFLAGS_RELEASE += -fwrapv
|
||||
QMAKE_CXXFLAGS_DEBUG += -fwrapv
|
||||
QMAKE_CXXFLAGS_DEBUG += -fwrapv -O0
|
||||
CONFIG += link_pkgconfig
|
||||
PKGCONFIG += "libtorrent-rasterbar libcurl"
|
||||
|
||||
|
|
Loading…
Reference in a new issue