Browse Source

- Force lists refresh before initially displaying the window to avoid lag

- Removed session tweaking on exit since it does not have any effect
adaptive-webui-19844
Christophe Dumez 16 years ago
parent
commit
87eee7029d
  1. 2
      src/GUI.cpp
  2. 9
      src/bittorrent.cpp
  3. 2
      src/src.pro

2
src/GUI.cpp

@ -231,6 +231,8 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis
QMainWindow::statusBar()->addPermanentWidget(upSpeedLbl); QMainWindow::statusBar()->addPermanentWidget(upSpeedLbl);
QMainWindow::statusBar()->addPermanentWidget(statusSep4); QMainWindow::statusBar()->addPermanentWidget(statusSep4);
QMainWindow::statusBar()->addPermanentWidget(ratioLbl); QMainWindow::statusBar()->addPermanentWidget(ratioLbl);
// Force list update before showing
updateLists(true);
if(!settings.value(QString::fromUtf8("Preferences/General/StartMinimized"), false).toBool()) { if(!settings.value(QString::fromUtf8("Preferences/General/StartMinimized"), false).toBool()) {
show(); show();
} }

9
src/bittorrent.cpp

@ -87,15 +87,6 @@ bittorrent::~bittorrent() {
/*saveDHTEntry(); /*saveDHTEntry();
saveSessionState(); saveSessionState();
saveFastResumeData();*/ 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 // Disable directory scanning
disableDirectoryScanning(); disableDirectoryScanning();
// Delete our objects // Delete our objects

2
src/src.pro

@ -93,7 +93,7 @@ DEFINES += NDEBUG
icon192 icon192
} }
QMAKE_CXXFLAGS_RELEASE += -fwrapv QMAKE_CXXFLAGS_RELEASE += -fwrapv
QMAKE_CXXFLAGS_DEBUG += -fwrapv QMAKE_CXXFLAGS_DEBUG += -fwrapv -O0
CONFIG += link_pkgconfig CONFIG += link_pkgconfig
PKGCONFIG += "libtorrent-rasterbar libcurl" PKGCONFIG += "libtorrent-rasterbar libcurl"

Loading…
Cancel
Save